|
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.OneSetPdu
SetPdu
The OneSetPdu class will set the value of one (1) object (oid), based on the Set request.
Unless an exception occurred the Object to the update() method of the Observer will be a varbind, so any AsnObject type can be returned. In the case of an exception, that exception will be passed.
For SNMPv3: The receiver of a request PDU acts as the authoritative engine.
varbind,
SetPdu_vec| 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 | |
OneSetPdu(SnmpContextBasisFace con)
Deprecated. Constructor. |
|
OneSetPdu(SnmpContextBasisFace con,
java.lang.String oid,
AsnObject val)
Deprecated. Constructor that will send the request immediately. |
|
OneSetPdu(SnmpContextBasisFace con,
java.lang.String oid,
AsnObject val,
java.util.Observer o)
Deprecated. Constructor that will send the request immediately. |
|
| Method Summary | |
protected void |
new_value(int n,
varbind a_var)
Deprecated. The value of the request is set. |
protected void |
tell_them()
Deprecated. 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 OneSetPdu(SnmpContextBasisFace con)
con - The context of the request
public OneSetPdu(SnmpContextBasisFace con,
java.lang.String oid,
AsnObject val)
throws PduException,
java.io.IOException
con - the SnmpContextBasisFaceoid - the oidval - The value
public OneSetPdu(SnmpContextBasisFace con,
java.lang.String oid,
AsnObject val,
java.util.Observer o)
throws PduException,
java.io.IOException
con - the SnmpContextBasisFaceoid - the oidval - The valueo - the Observer that will be notified when the answer is received| Method Detail |
protected void new_value(int n,
varbind a_var)
new_value in class Pdun - the index of the valuea_var - the valuePdu.new_value(int, uk.co.westhawk.snmp.stack.varbind),
Pdu.addOid(String, AsnObject)protected void tell_them()
Unless an exception occurred the Object to the update() method of the Observer will be a varbind, so any AsnObject type can be returned. In the case of an exception, that exception will be passed.
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 | |||||||||