|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.snmp.joesnmp.JoeSnmpTrapNotifier
public class JoeSnmpTrapNotifier
| Constructor Summary | |
|---|---|
JoeSnmpTrapNotifier(TrapNotificationListener listener,
TrapProcessorFactory factory)
|
|
| Method Summary | |
|---|---|
void |
snmpReceivedTrap(SnmpTrapSession session,
InetAddress agent,
int port,
SnmpOctetString community,
SnmpPduPacket pdu)
Process the recieved SNMP v2c trap that was received by the underlying trap session. |
void |
snmpReceivedTrap(SnmpTrapSession session,
InetAddress agent,
int port,
SnmpOctetString community,
SnmpPduTrap pdu)
Process the recieved SNMP v1 trap that was received by the underlying trap session. |
void |
snmpTrapSessionError(SnmpTrapSession session,
int error,
Object ref)
Processes an error condition that occurs in the SnmpTrapSession. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JoeSnmpTrapNotifier(TrapNotificationListener listener,
TrapProcessorFactory factory)
| Method Detail |
|---|
public void snmpReceivedTrap(SnmpTrapSession session,
InetAddress agent,
int port,
SnmpOctetString community,
SnmpPduPacket pdu)
Process the recieved SNMP v2c trap that was received by the underlying trap session.
snmpReceivedTrap in interface SnmpTrapHandlersession - The trap session that received the datagram.agent - The remote agent that sent the datagram.port - The remmote port the trap was sent from.community - The community string contained in the message.pdu - The protocol data unit containing the data
public void snmpReceivedTrap(SnmpTrapSession session,
InetAddress agent,
int port,
SnmpOctetString community,
SnmpPduTrap pdu)
Process the recieved SNMP v1 trap that was received by the underlying trap session.
snmpReceivedTrap in interface SnmpTrapHandlersession - The trap session that received the datagram.agent - The remote agent that sent the datagram.port - The remmote port the trap was sent from.community - The community string contained in the message.pdu - The protocol data unit containing the data
public void snmpTrapSessionError(SnmpTrapSession session,
int error,
Object ref)
Processes an error condition that occurs in the SnmpTrapSession. The errors are logged and ignored by the trapd class.
snmpTrapSessionError in interface SnmpTrapHandlersession - The SNMP Trap Sessionerror - The error condition value.ref - The PDU reference, or potentially null. It may also be an
exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||