|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--com.adventnet.snmp.beans.TrapEvent
Generated by the Snmp Trap Receiver bean when a trap is received. It contains the trap information.
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
TrapEvent(java.lang.Object o)
Instantiates a trap event with specified source. |
|
TrapEvent(java.lang.Object o,
SnmpPDU pdu)
Instantiates a trap event with specified source, and specified trap PDU. |
|
TrapEvent(java.lang.Object o,
SnmpPDU pdu,
java.lang.String error)
Instantiates a trap event with specified source, specified variable bindings, and specified error message. |
Method Summary | |
java.lang.String |
getAgentAddress()
Gets the address of the SNMP agent generating trap. |
java.lang.String |
getCommunity()
Gets community string received/sent |
java.lang.String |
getEnterprise()
Gets the trap enterprise OID. |
MibNode |
getNotificationDefinition()
Gets the Notification definition if available in a loaded MIB |
java.lang.String |
getObjectID(int index)
Gets specified variable ObjectID as a String from list of trap variables. |
java.lang.String |
getRemoteHost()
Gets hostname of the source of trap. |
int |
getRemotePort()
Gets the remote port of source of trap |
int |
getReqid()
Gets the request Identifier in packet. |
int |
getSpecificType()
Gets specific type number for the Trap Received. |
MibTrap |
getTrapDefinition()
Gets the trap definition if available in a loaded MIB |
SnmpPDU |
getTrapPDU()
Gets the trap PDU. |
int |
getTrapType()
Gets the trap type of a specific Trap. |
long |
getUpTime()
Gets the uptime value for a trap. |
java.lang.String |
getVariable(int index)
Get the specified Variable as a String from traps list of variables. |
int |
getVersion()
Gets SNMP Version number in PDU. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TrapEvent(java.lang.Object o)
public TrapEvent(java.lang.Object o, SnmpPDU pdu)
public TrapEvent(java.lang.Object o, SnmpPDU pdu, java.lang.String error)
Method Detail |
public java.lang.String getObjectID(int index)
public java.lang.String getVariable(int index)
public MibTrap getTrapDefinition()
public MibNode getNotificationDefinition()
public SnmpPDU getTrapPDU()
public java.lang.String getRemoteHost()
public int getRemotePort()
public int getReqid()
public java.lang.String getEnterprise()
public java.lang.String getAgentAddress()
public int getTrapType()
public int getSpecificType()
public long getUpTime()
public java.lang.String getCommunity()
public int getVersion()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |