Package uk.co.westhawk.snmp.pdu
Class OneIntPdu
java.lang.Object
java.util.Observable
uk.co.westhawk.snmp.stack.Pdu
uk.co.westhawk.snmp.stack.GetPdu
uk.co.westhawk.snmp.pdu.OneIntPdu
The OneIntPdu class will ask for one (1) object (oid) of the AsnInteger type, based on the Get request.
Unless an exception occurred the Object to the update() method of the Observer will be an Integer. 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/11/29 16:12:50 $
- Author:
- Birgit Arkesteijn
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.OneIntPdu
(SnmpContextBasisFace con, String oid) Constructor that will send the request immediately.OneIntPdu
(SnmpContextBasisFace con, String oid, Observer o) 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
-
OneIntPdu
Constructor.- Parameters:
con
- The context of the request
-
OneIntPdu
Constructor that will send the request immediately. No Observer is set.- Parameters:
con
- the SnmpContextBasisFaceoid
- the oid- Throws:
PduException
IOException
-
OneIntPdu
Constructor that will send the request immediately.- Parameters:
con
- the SnmpContextBasisFaceoid
- the oido
- the Observer that will be notified when the answer is received- Throws:
PduException
IOException
-
-
Method Details
-
getValue
Returns the value (the answer) of this request.- Returns:
- the value
-