public class DiscoveryPdu extends GetPdu
added, answered, encodedPacket, errind, errstat, msg_type, reqVarbinds, respVarbinds, snmpv3MsgId
Constructor and Description |
---|
DiscoveryPdu(SnmpContextv3Face cntxt)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
send()
Sends the PDU.
|
addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, getRetryIntervals, isExpectingResponse, isTimedOut, new_value, notifyObservers, printVars, send, send, sendme, setErrorIndex, setErrorStatus, setErrorStatus, setMsgType, setRetryIntervals, tell_them, toString, toString, waitForSelf
public DiscoveryPdu(SnmpContextv3Face cntxt)
cntxt
- The v3 context of the PDUpublic void addOid(java.lang.String oid) throws java.lang.IllegalArgumentException
addOid
in class Pdu
oid
- The oidjava.lang.IllegalArgumentException
- A discovery PDU cannot have any
OID.Pdu.addOid(varbind)
,
varbind
public void addOid(java.lang.String oid, AsnObject val)
addOid
in class Pdu
oid
- The oidval
- The valuejava.lang.IllegalArgumentException
- A discovery PDU cannot have any
OID.Pdu.addOid(java.lang.String)
,
varbind
public void addOid(AsnObjectId oid, AsnObject val)
addOid
in class Pdu
oid
- The oidval
- The valuejava.lang.IllegalArgumentException
- A discovery PDU cannot have any
OID.Pdu.addOid(java.lang.String)
,
varbind
public void addOid(varbind var) throws java.lang.IllegalArgumentException
addOid
in class Pdu
var
- The varbindjava.lang.IllegalArgumentException
- A discovery PDU cannot have any
OID.Pdu.addOid(String)
public void addOid(AsnObjectId oid)
addOid
in class Pdu
oid
- The oidjava.lang.IllegalArgumentException
- A discovery PDU cannot have any
OID.Pdu.addOid(varbind)
,
varbind
public boolean send() throws java.io.IOException, PduException
send
in class Pdu
java.io.IOException
PduException