Active Virtual Network Management Prediction (AVNMP) Classes

snmp.agent
Class SubAgent

java.lang.Object
  |
  +--snmp.agent.SubAgent
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class SubAgent
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

This class gets values from the application to respond to SNMP requests. This research is funded by DARPA/ITO Contract Number: F30602-98-C-0230 supported by the Air Force Research Laboratory/IF.

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

Field Summary
static byte badValue
           
 int errind
           
 int errstat
           
static byte genErr
           
static byte noError
           
static byte noSuchName
           
static byte readOnly
           
static byte tooBig
           
 varbind vb
           
 
Constructor Summary
SubAgent(varbind v, int e)
          Create information for a managed object.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object obj)
           
 AsnObject getValue()
          The application should call this to retrieve the value from the varbind.
 boolean isJustSet()
          Let Application know if the value has just been updated via an SNMP set.
 void setMe(varbind v)
          Agent should call this to notify application that this value has been modified via SNMP Set.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

noError

public static final byte noError

tooBig

public static final byte tooBig

noSuchName

public static final byte noSuchName

badValue

public static final byte badValue

readOnly

public static final byte readOnly

genErr

public static final byte genErr

vb

public varbind vb

errind

public int errind

errstat

public int errstat
Constructor Detail

SubAgent

public SubAgent(varbind v,
                int e)
Create information for a managed object. Errors are:

 0 noError
 1 tooBig
 2 noSuchName
 3 badValue
 4 readOnly
 5 genErr

 
Parameters:
v - A filled-in varbind.
e - An error status as described above.
See Also:
varbind
Method Detail

isJustSet

public boolean isJustSet()
Let Application know if the value has just been updated via an SNMP set.
Returns:
true if the varbind has been set.

setMe

public void setMe(varbind v)
Agent should call this to notify application that this value has been modified via SNMP Set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getValue

public AsnObject getValue()
The application should call this to retrieve the value from the varbind.
Returns:
The object's value.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

Active Virtual Network Management Prediction (AVNMP) Classes