public abstract class Pdu extends Observable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
added |
protected boolean |
answered |
protected SnmpContextBasisFace |
context |
protected byte[] |
encodedPacket |
protected int |
errind |
protected int |
errstat |
protected byte |
msg_type |
protected Vector |
reqVarbinds |
protected Vector |
respVarbinds |
protected Integer |
snmpv3MsgId |
| Constructor and Description |
|---|
Pdu(SnmpContextBasisFace con) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOid(AsnObjectId oid) |
void |
addOid(AsnObjectId oid,
AsnObject val) |
void |
addOid(String oid) |
void |
addOid(String oid,
AsnObject val) |
void |
addOid(Varbind var) |
protected void |
addToTrans() |
SnmpContextBasisFace |
getContext() |
int |
getErrorIndex() |
int |
getErrorStatus() |
String |
getErrorStatusString() |
byte |
getMsgType() |
int |
getReqId() |
Varbind[] |
getRequestVarbinds() |
Varbind[] |
getResponseVarbinds() |
int[] |
getRetryIntervals() |
protected boolean |
isExpectingResponse() |
boolean |
isTimedOut() |
protected void |
new_value(int n,
Varbind res) |
void |
notifyObservers(Object arg) |
protected StringBuffer |
printVars(String title,
Vector vars) |
boolean |
send() |
protected boolean |
send(int error_status,
int error_index) |
boolean |
send(String com)
Deprecated.
|
protected boolean |
sendme() |
protected void |
setErrorIndex(int ind) |
protected void |
setErrorStatus(int err) |
protected void |
setErrorStatus(int err,
PduException exc) |
protected void |
setMsgType(byte type) |
void |
setRetryIntervals(int[] rinterval) |
protected void |
tell_them() |
String |
toString() |
protected String |
toString(boolean withRespVars) |
boolean |
waitForSelf() |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChangedprotected Vector reqVarbinds
protected Vector respVarbinds
protected byte[] encodedPacket
protected SnmpContextBasisFace context
protected boolean added
protected byte msg_type
protected Integer snmpv3MsgId
protected int errstat
protected int errind
protected boolean answered
public Pdu(SnmpContextBasisFace con)
protected void new_value(int n,
Varbind res)
protected void tell_them()
public SnmpContextBasisFace getContext()
public void setRetryIntervals(int[] rinterval)
public int[] getRetryIntervals()
public boolean send()
throws IOException,
PduException
IOExceptionPduExceptionprotected boolean send(int error_status,
int error_index)
throws IOException,
PduException
IOExceptionPduExceptionprotected void addToTrans()
protected boolean sendme()
@Deprecated public boolean send(String com) throws IOException, PduException
IOExceptionPduExceptionpublic void addOid(String oid)
public void addOid(AsnObjectId oid)
public void addOid(AsnObjectId oid, AsnObject val)
public void addOid(Varbind var)
public Varbind[] getRequestVarbinds()
public Varbind[] getResponseVarbinds() throws PduException
PduExceptionpublic int getReqId()
public int getErrorIndex()
public int getErrorStatus()
public String getErrorStatusString()
public boolean isTimedOut()
public boolean waitForSelf()
protected String toString(boolean withRespVars)
protected StringBuffer printVars(String title, Vector vars)
public byte getMsgType()
protected void setMsgType(byte type)
protected void setErrorStatus(int err)
protected void setErrorStatus(int err,
PduException exc)
protected void setErrorIndex(int ind)
protected boolean isExpectingResponse()
public void notifyObservers(Object arg)
notifyObservers in class ObservableCopyright © 2019. All rights reserved.