|
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.GetBulkPdu | +--uk.co.westhawk.snmp.pdu.OneGetBulkPdu
The OneGetBulkPdu class performs a getBulkRequest and collects the response varbinds into a Vector.
If no exception occurred whilst receiving the response, the Object to the update() method of the Observer will be an Vector of varbinds, so they may contains any AsnObject type. If an exception occurred, that exception will be passed as the Object to the update() method.
For SNMPv3: The receiver of a request PDU acts as the authoritative engine.
varbind
,
Vector
Field Summary |
Fields inherited from class uk.co.westhawk.snmp.stack.GetBulkPdu |
max_repetitions, non_repeaters |
Fields inherited from class uk.co.westhawk.snmp.stack.Pdu |
added, answered, context, encodedPacket, errind, errstat, msg_type, reqVarbinds, respVarbinds, snmpv3MsgId |
Constructor Summary | |
OneGetBulkPdu(SnmpContextBasisFace con)
Constructor. |
Method Summary | |
java.util.Vector |
getVarbinds()
Returns a vector with the response varbinds. |
protected void |
new_value(int n,
varbind a_var)
The value of the request is set. |
protected void |
tell_them()
This method notifies all observers. |
Methods inherited from class uk.co.westhawk.snmp.stack.GetBulkPdu |
getMaxRepetitions, getNonRepeaters, send, setMaxRepetitions, setMaxRepititions, setNonRepeaters, toString |
Methods inherited from class uk.co.westhawk.snmp.stack.Pdu |
addOid, addOid, addOid, addOid, addOid, addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, isExpectingResponse, isTimedOut, notifyObservers, printVars, 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 OneGetBulkPdu(SnmpContextBasisFace con)
con
- The context (v2c or v3) of the PDUMethod Detail |
public java.util.Vector getVarbinds()
protected void new_value(int n, varbind a_var)
new_value
in class Pdu
n
- the index of the valuea_var
- the valuePdu.new_value(int, uk.co.westhawk.snmp.stack.varbind)
protected void tell_them()
If no exception occurred whilst receiving the response, the Object to the update() method of the Observer will be an Vector of varbinds, so they may contains any AsnObject type. If an exception occurred, that exception will be passed as the Object to the update() method.
tell_them
in class Pdu
Vector
|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |