Active Virtual Network Management Prediction (AVNMP) Classes

snmp.agent
Class AppCommunicator

java.lang.Object
  |
  +--snmp.agent.AppCommunicator
All Implemented Interfaces:
AgentTableInterface, CommInterface, java.io.Serializable

public class AppCommunicator
extends java.lang.Object
implements CommInterface, AgentTableInterface, java.io.Serializable

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

Fields inherited from interface snmp.agent.CommInterface
ERR_DUPENTRY, ERR_NOSUCHID, MSG_ADDINT, MSG_ADDLONG, MSG_ADDSTRING, MSG_GETINT, MSG_GETLONG, MSG_GETNEXT, MSG_GETSTRING, MSG_REMOVE, MSG_REMOVEBRANCH, MSG_UPDATEINT, MSG_UPDATELONG, MSG_UPDATESTRING, OK
 
Constructor Summary
AppCommunicator()
           
 
Method Summary
 void acquireLock()
           
 boolean addSubAgent(java.lang.String oid, int value)
           
 boolean addSubAgent(java.lang.String oid, long value)
           
 boolean addSubAgent(java.lang.String oid, java.lang.String value)
           
 void commitTrans()
           
 int getIntSubAgent(java.lang.String oid)
           
 long getLongSubAgent(java.lang.String oid)
           
 java.lang.String getNextSubAgent(java.lang.String oid)
           
 java.lang.String getStringSubAgent(java.lang.String oid)
           
 void releaseLock()
           
 boolean removeBranch(java.lang.String first_oid, java.lang.String last_oid)
           
 boolean removeSubAgent(java.lang.String oid)
           
 void startTrans()
           
 boolean updateSubAgent(java.lang.String oid, int value, java.lang.String index)
           
 boolean updateSubAgent(java.lang.String oid, long value, java.lang.String index)
           
 boolean updateSubAgent(java.lang.String oid, java.lang.String value, java.lang.String index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppCommunicator

public AppCommunicator()
Method Detail

addSubAgent

public boolean addSubAgent(java.lang.String oid,
                           int value)
                    throws DuplicateEntryException
Specified by:
addSubAgent in interface AgentTableInterface

addSubAgent

public boolean addSubAgent(java.lang.String oid,
                           long value)
                    throws DuplicateEntryException
Specified by:
addSubAgent in interface AgentTableInterface

addSubAgent

public boolean addSubAgent(java.lang.String oid,
                           java.lang.String value)
                    throws DuplicateEntryException
Specified by:
addSubAgent in interface AgentTableInterface

updateSubAgent

public boolean updateSubAgent(java.lang.String oid,
                              int value,
                              java.lang.String index)
                       throws InvalidIdException
Specified by:
updateSubAgent in interface AgentTableInterface

updateSubAgent

public boolean updateSubAgent(java.lang.String oid,
                              long value,
                              java.lang.String index)
                       throws InvalidIdException
Specified by:
updateSubAgent in interface AgentTableInterface

updateSubAgent

public boolean updateSubAgent(java.lang.String oid,
                              java.lang.String value,
                              java.lang.String index)
                       throws InvalidIdException
Specified by:
updateSubAgent in interface AgentTableInterface

getIntSubAgent

public int getIntSubAgent(java.lang.String oid)
                   throws InvalidIdException
Specified by:
getIntSubAgent in interface AgentTableInterface

getLongSubAgent

public long getLongSubAgent(java.lang.String oid)
                     throws InvalidIdException
Specified by:
getLongSubAgent in interface AgentTableInterface

getStringSubAgent

public java.lang.String getStringSubAgent(java.lang.String oid)
                                   throws InvalidIdException
Specified by:
getStringSubAgent in interface AgentTableInterface

getNextSubAgent

public java.lang.String getNextSubAgent(java.lang.String oid)
                                 throws InvalidIdException
Specified by:
getNextSubAgent in interface AgentTableInterface

removeSubAgent

public boolean removeSubAgent(java.lang.String oid)
                       throws InvalidIdException
Specified by:
removeSubAgent in interface AgentTableInterface

removeBranch

public boolean removeBranch(java.lang.String first_oid,
                            java.lang.String last_oid)
                     throws InvalidIdException
Specified by:
removeBranch in interface AgentTableInterface

startTrans

public void startTrans()

commitTrans

public void commitTrans()

acquireLock

public void acquireLock()

releaseLock

public void releaseLock()

Active Virtual Network Management Prediction (AVNMP) Classes