com.adventnet.snmp.snmp2.agent
Class NotificationVarBindTable

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.agent.NotificationVarBindTable

public class NotificationVarBindTable
extends java.lang.Object

This Table Holds all the NotificationVarBindEntries. The entries will be populated as and when a Trap Leaves the Agent. This will be instantiated with the SnmpTrapService for Supporting ReliableTraps feature.


Field Summary
(package private)  NotificationVarbindEntry notifVarBindEntry
           
(package private)  java.util.Vector notifVarBindVec
           
 
Constructor Summary
NotificationVarBindTable(SnmpAgent agentRef)
          The Default Constructor with the SnmpAgent Reference
 
Method Summary
 boolean addEntry(NotificationVarbindEntry entry)
          This method Adds the given entry to this Table.
 NotificationVarbindEntry getEntry(java.lang.Integer id, java.lang.Integer index)
          The method to get the NotificationVarbindEntry instance with the given ID and the VarBindIndex values
 java.util.Vector getTableVector()
          Method to retrieve the vector of Entries in the NotificationVarBindTable.
 void setTableVector(java.util.Vector tableVector)
          Method to set the Vector of NotificationVarBindEntries.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

notifVarBindEntry

NotificationVarbindEntry notifVarBindEntry

notifVarBindVec

java.util.Vector notifVarBindVec
Constructor Detail

NotificationVarBindTable

public NotificationVarBindTable(SnmpAgent agentRef)
The Default Constructor with the SnmpAgent Reference
Parameters:
agentRef - The SnmpAgent Reference
Method Detail

addEntry

public boolean addEntry(NotificationVarbindEntry entry)
This method Adds the given entry to this Table.
Parameters:
entry - The NotificationVarbindEntry instance.
Returns:
boolean specifying whether the entry is successfully added or not.

getEntry

public NotificationVarbindEntry getEntry(java.lang.Integer id,
                                         java.lang.Integer index)
The method to get the NotificationVarbindEntry instance with the given ID and the VarBindIndex values
Parameters:
id - The reqID Integer of the entry to be retrieved.
index - The VarBind Index of the entry to be retrieved.
Returns:
The NotificationVarbindEntry if present else a null.

getTableVector

public java.util.Vector getTableVector()
Method to retrieve the vector of Entries in the NotificationVarBindTable.
Returns:
The Vector of NotificationVarBindEntry Objects.

setTableVector

public void setTableVector(java.util.Vector tableVector)
Method to set the Vector of NotificationVarBindEntries.
Parameters:
tableVector - the Vector containing NotificationVarBindEntry Objects.