|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.trapd.Trapd.V2TrapInformation
V2 Trap information object for processing by the queue reader
Field Summary | |
private java.net.InetAddress |
m_agent
The internet address of the sending agent |
private SnmpOctetString |
m_community
The community string from the actual SNMP packet |
private SnmpPduPacket |
m_pdu
The received PDU |
Constructor Summary | |
Trapd.V2TrapInformation(java.net.InetAddress agent,
SnmpOctetString community,
SnmpPduPacket pdu)
Constructs a new trap information instance that contains the sending agent, the community string, and the Protocol Data Unit. |
Method Summary | |
java.net.InetAddress |
getAgent()
Returns the sending agent's internet address |
SnmpOctetString |
getCommunity()
Returns the SNMP community string from the received packet. |
SnmpPduPacket |
getPdu()
Returns the Protocol Data Unit that was encapsulated within the SNMP Trap message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private SnmpPduPacket m_pdu
private java.net.InetAddress m_agent
private SnmpOctetString m_community
Constructor Detail |
public Trapd.V2TrapInformation(java.net.InetAddress agent, SnmpOctetString community, SnmpPduPacket pdu)
agent
- The sending agent's addresscommunity
- The community string from the SNMP packet.pdu
- The encapsulated Protocol Data Unit.Method Detail |
public java.net.InetAddress getAgent()
public SnmpPduPacket getPdu()
public SnmpOctetString getCommunity()
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |