|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.jmx.adaptor.snmp.trapd.TrapReceiver
Implements an SNMP trap reception engine
Field Summary | |
protected org.jboss.logging.Logger |
log
target logger |
Constructor Summary | |
TrapReceiver(org.jboss.logging.Logger log)
Public CTOR |
Method Summary | |
void |
snmpReceivedTrap(org.opennms.protocols.snmp.SnmpTrapSession session,
InetAddress agent,
int port,
org.opennms.protocols.snmp.SnmpOctetString community,
org.opennms.protocols.snmp.SnmpPduPacket pdu)
Receives and logs information about SNMPv2 traps. |
void |
snmpReceivedTrap(org.opennms.protocols.snmp.SnmpTrapSession session,
InetAddress agent,
int port,
org.opennms.protocols.snmp.SnmpOctetString community,
org.opennms.protocols.snmp.SnmpPduTrap pdu)
Receives and logs information about SNMPv1 traps. |
void |
snmpTrapSessionError(org.opennms.protocols.snmp.SnmpTrapSession session,
int error,
Object ref)
Processes session errors. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final org.jboss.logging.Logger log
Constructor Detail |
public TrapReceiver(org.jboss.logging.Logger log)
log
- the logger used to output info messagesMethod Detail |
public void snmpReceivedTrap(org.opennms.protocols.snmp.SnmpTrapSession session, InetAddress agent, int port, org.opennms.protocols.snmp.SnmpOctetString community, org.opennms.protocols.snmp.SnmpPduPacket pdu)
snmpReceivedTrap
in interface org.opennms.protocols.snmp.SnmpTrapHandler
session
- the trap session that received the PDUagent
- the address of the remote senderport
- the remote port where the pdu was transmitted fromcommunity
- the decoded community stringpdu
- the decoded v2 trap pdupublic void snmpReceivedTrap(org.opennms.protocols.snmp.SnmpTrapSession session, InetAddress agent, int port, org.opennms.protocols.snmp.SnmpOctetString community, org.opennms.protocols.snmp.SnmpPduTrap pdu)
snmpReceivedTrap
in interface org.opennms.protocols.snmp.SnmpTrapHandler
session
- the trap session that received the PDUagent
- the address of the remote senderport
- the remote port where the pdu was transmitted fromcommunity
- the decoded community stringpdu
- the decoded v1 trap pdupublic void snmpTrapSessionError(org.opennms.protocols.snmp.SnmpTrapSession session, int error, Object ref)
snmpTrapSessionError
in interface org.opennms.protocols.snmp.SnmpTrapHandler
session
- the trap session in errorerror
- the error conditionref
- the reference object, if any
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |