Package uk.co.westhawk.snmp.pdu
Class OneInformPdu
java.lang.Object
java.util.Observable
uk.co.westhawk.snmp.stack.Pdu
uk.co.westhawk.snmp.stack.InformPdu
uk.co.westhawk.snmp.pdu.OneInformPdu
Deprecated.
The OneInformPdu class will inform a manager about one object (OIDs), based on the Inform request.
This class represents the SNMP Inform Request PDU. Inform Requests are sent between managers. It is a kind of 'acknowlegded' trap since the receiving end should send a Response PDU as reply. The varbind list has the same elements as the TrapPduv2.
Note, this PDU should be sent to port 162 (the default trap port) by default. You will have to create a SnmpContext with the ListeningContextFace.DEFAULT_TRAP_PORT as parameter!
For SNMPv3: The receiver of an inform PDU acts as the authoritative engine.
- Since:
- 4_12
- Version:
- $Revision: 3.5 $ $Date: 2006/02/09 14:20:09 $
- Author:
- Birgit Arkesteijn
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructor.OneInformPdu
(SnmpContextBasisFace con, String oid) Deprecated.Constructor that will send the request immediately.OneInformPdu
(SnmpContextBasisFace con, String oid, 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
-
OneInformPdu
Deprecated.Constructor.- Parameters:
con
- The context (v2c or v3) of the PDU
-
OneInformPdu
Deprecated.Constructor that will send the request immediately. No Observer is set.- Parameters:
con
- the SnmpContextBasisFaceoid
- the oid- Throws:
PduException
IOException
-
OneInformPdu
public OneInformPdu(SnmpContextBasisFace con, String oid, Observer o) throws PduException, IOException Deprecated.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
-
InformPdu