|
SNMP Stack 4_12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--uk.co.westhawk.snmp.stack.Pdu | +--uk.co.westhawk.snmp.pdu.DiscoveryPdu
This class is used to perform the SNMPv3 USM discovery. This Pdu cannot have any OIDs.
Fields inherited from class uk.co.westhawk.snmp.stack.Pdu |
added, answered, context, encodedPacket, errind, errstat, msg_type, reqVarbinds, respVarbinds |
Constructor Summary | |
DiscoveryPdu(SnmpContextv3Face cntxt)
Constructor. |
Method Summary | |
void |
addOid(AsnObjectId oid)
Cannot add any OID. |
void |
addOid(AsnObjectId oid,
AsnObject val)
Cannot add any OID. |
void |
addOid(java.lang.String oid)
Cannot add any OID. |
void |
addOid(java.lang.String oid,
AsnObject val)
Cannot add any OID. |
void |
addOid(varbind var)
Cannot add any OID. |
protected void |
new_value(int n,
varbind a_var)
The value of the request is set. |
boolean |
send()
Send the Pdu. |
protected void |
tell_them()
The methods notifies all observers. |
Methods inherited from class uk.co.westhawk.snmp.stack.Pdu |
addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, isTimedOut, notifyObservers, 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 DiscoveryPdu(SnmpContextv3Face cntxt)
context
- The v3 context of the PduMethod Detail |
public void addOid(java.lang.String oid) throws java.lang.IllegalArgumentException
addOid
in class Pdu
java.lang.IllegalArgumentException
- A discovery Pdu cannot have any
OID.public void addOid(java.lang.String oid, AsnObject val)
addOid
in class Pdu
java.lang.IllegalArgumentException
- A discovery Pdu cannot have any
OID.public void addOid(AsnObjectId oid, AsnObject val)
addOid
in class Pdu
java.lang.IllegalArgumentException
- A discovery Pdu cannot have any
OID.public void addOid(varbind var) throws java.lang.IllegalArgumentException
addOid
in class Pdu
java.lang.IllegalArgumentException
- A discovery Pdu cannot have any
OID.public void addOid(AsnObjectId oid)
addOid
in class Pdu
java.lang.IllegalArgumentException
- A discovery Pdu cannot have any
OID.public boolean send() throws java.io.IOException, PduException
send
in class Pdu
protected void new_value(int n, varbind a_var)
new_value
in class Pdu
Pdu.new_value(int, uk.co.westhawk.snmp.stack.varbind)
protected void tell_them()
If no exception occurred whilst receiving the response, the Object to the update() method of the Observer will be an array of varbinds, so they may contains any AsnObject type. If an exception occurred, that exception will be passed as the Object to the update() method.
tell_them
in class Pdu
|
SNMP Stack 4_12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |