Package uk.co.westhawk.snmp.pdu
Class OneSetPdu
java.lang.Object
java.util.Observable
uk.co.westhawk.snmp.stack.Pdu
uk.co.westhawk.snmp.stack.SetPdu
uk.co.westhawk.snmp.pdu.OneSetPdu
Deprecated.
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.
- Version:
- $Revision: 3.14 $ $Date: 2006/01/17 17:49:53 $
- Author:
- Birgit Arkesteijn
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructor.OneSetPdu
(SnmpContextBasisFace con, String oid, AsnObject val) Deprecated.Constructor that will send the request immediately.OneSetPdu
(SnmpContextBasisFace con, String oid, AsnObject val, Observer o) Deprecated.Constructor that will send the request immediately. -
Method Summary
Methods inherited from class uk.co.westhawk.snmp.stack.Pdu
addOid, addOid, addOid, addOid, addOid, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, getRetryIntervals, isTimedOut, notifyObservers, send, send, setRetryIntervals, toString, waitForSelf
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
-
Constructor Details
-
OneSetPdu
Deprecated.Constructor.- Parameters:
con
- The context of the request
-
OneSetPdu
public OneSetPdu(SnmpContextBasisFace con, String oid, AsnObject val) throws PduException, IOException Deprecated.Constructor that will send the request immediately. No Observer is set.- Parameters:
con
- the SnmpContextBasisFaceoid
- the oidval
- The value- Throws:
PduException
IOException
-
OneSetPdu
public OneSetPdu(SnmpContextBasisFace con, String oid, AsnObject val, Observer o) throws PduException, IOException Deprecated.Constructor that will send the request immediately.- Parameters:
con
- the SnmpContextBasisFaceoid
- the oidval
- The valueo
- the Observer that will be notified when the answer is received- Throws:
PduException
IOException
-
SetPdu