public class OneGetNextPdu extends GetNextPdu
The OneGetNextPdu class will ask for one (1) object (oid), based on the GetNext 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
,
InterfaceGetNextPdu
,
GetNextPdu_vec
added, answered, context, encodedPacket, errind, errstat, msg_type, reqVarbinds, respVarbinds, snmpv3MsgId
Constructor and Description |
---|
OneGetNextPdu(SnmpContextBasisFace con)
Constructor.
|
OneGetNextPdu(SnmpContextBasisFace con,
java.lang.String oid)
Constructor that will send the request immediately.
|
OneGetNextPdu(SnmpContextBasisFace con,
java.lang.String oid,
java.util.Observer o)
Constructor that will send the request immediately.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addOid, addOid, addOid, addOid, addOid, addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, getRetryIntervals, isExpectingResponse, isTimedOut, notifyObservers, printVars, send, send, send, sendme, setErrorIndex, setErrorStatus, setErrorStatus, setMsgType, setRetryIntervals, toString, toString, waitForSelf
public OneGetNextPdu(SnmpContextBasisFace con)
con
- The context of the requestpublic OneGetNextPdu(SnmpContextBasisFace con, java.lang.String oid) throws PduException, java.io.IOException
con
- the SnmpContextBasisFaceoid
- the oidPduException
java.io.IOException
public OneGetNextPdu(SnmpContextBasisFace con, java.lang.String oid, java.util.Observer o) throws PduException, java.io.IOException
con
- the SnmpContextBasisFaceoid
- the oido
- the Observer that will be notified when the answer is receivedPduException
java.io.IOException
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()
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.