com.adventnet.snmp.snmp2.agent
Class NotificationLogTable
java.lang.Object
|
+--com.adventnet.snmp.snmp2.agent.NotificationLogTable
- public class NotificationLogTable
- extends java.lang.Object
This Table Holds all the NotificationLogEntries.
The entries will be populated as and when a Trap Leaves the Agent.
This will be instantiated with the SnmpTrapService for
Supporting ReliableTraps feature.
|
Method Summary |
boolean |
addEntry(NotificationLogEntry entry)
This method Adds the given entry to this Table. |
NotificationLogEntry |
getEntry(java.lang.Integer id)
The method to get the NotificationLogEntry instance with the given ID |
java.util.Vector |
getTableVector()
Method to retrieve the vector of Entries in the NotificationLogTable. |
void |
setTableVector(java.util.Vector tableVector)
Method to set the Vector of NotificationLogEntries. |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
agentName
SnmpAgent agentName
notifLogEntry
NotificationLogEntry notifLogEntry
notifLogVec
java.util.Vector notifLogVec
NotificationLogTable
public NotificationLogTable(SnmpAgent agentRef)
- The Default Constructor with the Agent Reference.
- Parameters:
agentRef - the SnmpAgent Reference whose Traps are to be stored.
addEntry
public boolean addEntry(NotificationLogEntry entry)
- This method Adds the given entry to this Table.
- Parameters:
entry - The NotificationLogEntry instance.- Returns:
- boolean specifying whether the entry is successfully added
or not.
getEntry
public NotificationLogEntry getEntry(java.lang.Integer id)
- The method to get the NotificationLogEntry instance with the given ID
- Parameters:
id - The reqID Integer of the entry to be retrieved.- Returns:
- The NotificationLogEntry if present else a null.
getTableVector
public java.util.Vector getTableVector()
- Method to retrieve the vector of Entries in the NotificationLogTable.
- Returns:
- The Vector of NotificationLogEntry Objects.
setTableVector
public void setTableVector(java.util.Vector tableVector)
- Method to set the Vector of NotificationLogEntries.
- Parameters:
tableVector - the Vector containing NotificationLogEntry Objects.