|
Active Virtual Network Management Prediction (AVNMP) Classes | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--snmp.Pdu
This class implements a Pdu.
Field Summary | |
boolean |
answered
|
int |
errind
|
int |
errstat
|
byte |
msg_type
|
int |
reqid
|
java.util.Vector |
varbinds
|
Constructor Summary | |
Pdu(SnmpAgentContext con)
Construct an empty PDU to be sent. |
|
Pdu(SnmpContext con)
Construct an empty PDU to be sent. |
Method Summary | |
void |
add_oid(java.lang.String oid)
Add a new oid with a null value to the varbind list. |
void |
add_vb(varbind vb)
Add a new varbind to the list. |
boolean |
agentSend(java.lang.String community)
Send this Pdu over the channel. |
void |
fillin(AsnPduSequence seq)
Replace the varbinds of this Pdu with varbinds from a Pdu sequence. |
int |
getErrorIndex()
|
int |
getErrorStatus()
|
abstract void |
new_value(int n,
varbind var)
Over-ride this method with one to set a new internal value. |
void |
run()
Use this new thread to repeatly attempt to send the SNMP request. |
void |
send(java.lang.String com)
Start a new thread to do the send. |
boolean |
sendme(java.lang.String community)
Send this Pdu over the channel. |
void |
set_msg_type(byte type)
Change the default (get request) message type. |
abstract void |
tell_them()
Over-ride this method with one to notify observers of a new value. |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int reqid
public int errstat
public int errind
public java.util.Vector varbinds
public boolean answered
public byte msg_type
Constructor Detail |
public Pdu(SnmpContext con)
con
- SNMP connection information.public Pdu(SnmpAgentContext con)
con
- SNMP connection information.Method Detail |
public abstract void new_value(int n, varbind var)
n
- Appears to be an index for a vector of varbinds.var
- The varbind to set.public abstract void tell_them()
public void fillin(AsnPduSequence seq)
seq
- A PDU sequence whose varbinds will be placed into this
Pdu.public boolean sendme(java.lang.String community) throws java.io.IOException
community
- The SNMP community name.public boolean agentSend(java.lang.String community) throws java.io.IOException
community
- The SNMP community name.public void send(java.lang.String com)
com
- The community name.public void add_oid(java.lang.String oid)
oid
- The oid to be added to the list.public void add_vb(varbind vb)
vb
- New varbind to be added.public void set_msg_type(byte type)
type
- The message type.public int getErrorStatus()
public int getErrorIndex()
public void run()
run
in interface java.lang.Runnable
|
Active Virtual Network Management Prediction (AVNMP) Classes | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |