|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--uk.co.westhawk.snmp.stack.Pdu | +--uk.co.westhawk.snmp.stack.TrapPduv2
This class represents the ASN SNMP v2c (and higher) Trap PDU object. This PDU is not supported in SNMPv1.
See SNMPv2-PDU;
The variable bindings list contains the following pairs of object
names and values:
For SNMPv3: The sender of a trap PDU acts as the authoritative engine.
TrapPduv1
Field Summary |
Fields inherited from class uk.co.westhawk.snmp.stack.Pdu |
added, answered, context, encodedPacket, errind, errstat, msg_type, reqVarbinds, respVarbinds, snmpv3MsgId |
Constructor Summary | |
TrapPduv2(SnmpContextBasisFace con)
Constructor. |
Method Summary | |
protected boolean |
isExpectingResponse()
Returns that this type of PDU is not expecting a response. |
protected void |
new_value(int n,
varbind res)
Has no meaning, since there is not response. |
protected void |
tell_them()
Has no meaning, since there is not response. |
java.lang.String |
toString()
Returns the string representation of this object. |
Methods inherited from class uk.co.westhawk.snmp.stack.Pdu |
addOid, addOid, addOid, addOid, addOid, addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, isTimedOut, notifyObservers, printVars, send, send, send, sendme, setErrorIndex, setErrorStatus, setErrorStatus, setMsgType, setRetryIntervals, toString, waitForSelf |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TrapPduv2(SnmpContextBasisFace con)
con
- The context (v2c or v3) of the PDU
java.lang.IllegalArgumentException
- if the context version is
SNMPv1Method Detail |
public java.lang.String toString()
toString
in class Pdu
protected void new_value(int n, varbind res)
new_value
in class Pdu
protected void tell_them()
tell_them
in class Pdu
protected boolean isExpectingResponse()
isExpectingResponse
in class Pdu
|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |