Active Virtual Network Management Prediction (AVNMP) Classes

snmp
Class SetPdu

java.lang.Object
  |
  +--java.util.Observable
        |
        +--snmp.Pdu
              |
              +--snmp.SetPdu
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class SetPdu
extends Pdu
implements java.io.Serializable

This class implements a set pdu.

Version:
$Revision: 1.1.1.1 $ $State: Exp $
Author:
Steve Bush
See Also:
Serialized Form

Fields inherited from class snmp.Pdu
answered, errind, errstat, msg_type, reqid, varbinds
 
Constructor Summary
SetPdu(SnmpContext con)
          Create a set PDU.
 
Method Summary
 void add_oid(java.lang.String oid, AsnObject val)
          Add an oid to the values to be set.
 void new_value(int n, varbind a_var)
          Update the varbind.
 void tell_them()
          Notify the observers.
 
Methods inherited from class snmp.Pdu
add_oid, add_vb, agentSend, fillin, getErrorIndex, getErrorStatus, run, send, sendme, set_msg_type
 
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
 

Constructor Detail

SetPdu

public SetPdu(SnmpContext con)
Create a set PDU.
Parameters:
con - The SNMP connection information.
Method Detail

add_oid

public void add_oid(java.lang.String oid,
                    AsnObject val)
Add an oid to the values to be set.
Parameters:
oid - The object id.
val - The ASN object to be set.

new_value

public void new_value(int n,
                      varbind a_var)
Update the varbind.
Overrides:
new_value in class Pdu
Parameters:
n - Update the value if this is 0.
a_var - The varbind list.

tell_them

public void tell_them()
Notify the observers.
Overrides:
tell_them in class Pdu

Active Virtual Network Management Prediction (AVNMP) Classes