|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.snmp.snmp2.agent.BaseForwardingTable
This class has the Informations about the Trap Forwarding Entries. The TrapService configured with this Table sends Traps to all the Entries available in this Table.
This class implements the TrapForwardingTableInterface.
Both ForwardingTable and MicroForwardingTable
extends this class and make use of the methods available in this class.
ForwardingTable,
MicroForwardingTable,
ForwardingEntry| Field Summary | |
(package private) ForwardingEntry |
forEntry
|
(package private) java.util.Vector |
forVec
|
(package private) boolean |
modified
|
(package private) BaseSnmpTrapService |
trapListener
|
| Constructor Summary | |
BaseForwardingTable()
Empty Constructor |
|
BaseForwardingTable(BaseSnmpTrapService service)
The Default Constructor without persistence storage option. |
|
| Method Summary | |
boolean |
addForwardingEntry(ForwardingEntry entry)
Method to add an Entry to this Table. |
ForwardingEntry |
getForwardingEntry(int ind)
Getter for the Entry at the speified index. |
ForwardingEntry |
getForwardingEntry(java.lang.String host,
int port)
Method to get the available entry by specyfing the Host and Port values. |
ForwardingEntry |
getForwardingEntryInstance()
Method to retieve a new ForwardingEntry Object. |
int |
getNumRows()
Getters for the number of rows in this Table. |
java.util.Vector |
getTableVector()
Getter for the Vector of ForwardingEntries associated with this Table. |
java.lang.String |
getV1v2ManagerHost(int ind)
Getter for the Targetted Manager Host. |
int |
getV1v2ManagerPort(int ind)
Getter for the Targetted Manager Port. |
int |
getV1v2ManagerStatus(int ind)
Getter for the Entry Status. |
boolean |
isModified()
This method is for the FailOver support. |
void |
setModified(boolean isModified)
This method is to set the FailOver Flag. |
void |
setTableVector(java.util.Vector tableVector)
Setter of the Vector of ForwardingEntries to this Table. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
BaseSnmpTrapService trapListener
ForwardingEntry forEntry
boolean modified
java.util.Vector forVec
| Constructor Detail |
public BaseForwardingTable()
public BaseForwardingTable(BaseSnmpTrapService service)
service - the BaseSnmpTrapService.| Method Detail |
public boolean addForwardingEntry(ForwardingEntry entry)
entry - The ForwardingEntry to be added.
public ForwardingEntry getForwardingEntry(java.lang.String host,
int port)
host - The Target host of the entry to be got.port - The Target port of the entry to be got.public java.util.Vector getTableVector()
setTableVector(Vector tableVector)public void setTableVector(java.util.Vector tableVector)
tableVector - The Vector of ForwardingEntry objects sorted
according to their instance.getTableVector()public ForwardingEntry getForwardingEntryInstance()
public int getNumRows()
public java.lang.String getV1v2ManagerHost(int ind)
ind - The int index of the Entry for which the Host is to be
retrieved.public int getV1v2ManagerPort(int ind)
ind - The int index of the Entry for which the port is to be
retrieved.public int getV1v2ManagerStatus(int ind)
ind - The int index of the Entry for which the Status is to be
retrieved.public ForwardingEntry getForwardingEntry(int ind)
ind - The int index of the Entry which is to be retrieved.public void setModified(boolean isModified)
isModified - The boolean specifying wheteher the Table Entries were
changed.isModified()public boolean isModified()
setModified(boolean isModified)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||