|
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.SetPdu | +--uk.co.westhawk.snmp.pdu.SetPdu_vec
The SetPdu_vec class will set the value of a number of objects (OIDs), based on the Set request.
Specify with addOid() the OIDs that should be requested with this PDU request. No more than count (see constructor) should be added. Add an Observer to the PDU with addObserver(), and send the PDU with send().
If no exception occurred whilst receiving the response, the Object to the update() method of the Observer will be an array 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.
Pdu.addOid(java.lang.String)
,
Pdu.send()
,
varbind
,
OneSetPdu
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 | |
SetPdu_vec(SnmpContextBasisFace con,
int count)
Constructor. |
Method Summary | |
protected void |
new_value(int n,
varbind 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.Pdu |
addOid, addOid, addOid, addOid, addOid, addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, isExpectingResponse, isTimedOut, notifyObservers, printVars, send, send, send, sendme, setErrorIndex, setErrorStatus, setErrorStatus, setMsgType, setRetryIntervals, toString, 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 SetPdu_vec(SnmpContextBasisFace con, int count)
con
- The context of the requestcount
- The number of OIDs to be getMethod Detail |
protected void new_value(int n, varbind var)
new_value
in class Pdu
n
- the index of the valuePdu.new_value(int, uk.co.westhawk.snmp.stack.varbind)
,
Pdu.addOid(String, AsnObject)
protected void tell_them()
If no exception occurred whilst receiving the response, the Object to the update() method of the Observer will be an array 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
|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |