com.adventnet.snmp.snmp2.agent
Interface TrapForwardingTableInterface

All Known Subinterfaces:
V3TrapForwardingTableInterface
All Known Implementing Classes:
BaseForwardingTable, BaseTrapForwardingTable, TrapForwardingTable

public interface TrapForwardingTableInterface

This interface is supported by all user classes which are interested in sending traps to a Table of managers and ports at which the managers would receive them

See Also:
SnmpTrapService.sendTrap

Method Summary
 ForwardingEntry getForwardingEntry(int index)
          Gets the Entry at the given index.
 int getNumRows()
          Gets the number of rows of a table.
 java.lang.String getV1v2ManagerHost(int index)
          Gets the manager host name to which we need to send the Traps.
 int getV1v2ManagerPort(int index)
          Gets the manager port to which we need to send the Traps.
 int getV1v2ManagerStatus(int index)
          Gets the row status of the table.
 

Method Detail

getNumRows

public int getNumRows()
Gets the number of rows of a table.
Returns:
the Number of rows in the Table

getV1v2ManagerHost

public java.lang.String getV1v2ManagerHost(int index)
Gets the manager host name to which we need to send the Traps.
Parameters:
index - The index of the table.
Returns:
The Manager to which trap is to be sent, null if there is no manager for the index.

getV1v2ManagerPort

public int getV1v2ManagerPort(int index)
Gets the manager port to which we need to send the Traps.
Parameters:
index - The Index of the Table.
Returns:
The Manager Port to which Trap is to be sent. If a -1 is returned port is assumed to be 162.

getV1v2ManagerStatus

public int getV1v2ManagerStatus(int index)
Gets the row status of the table.
Parameters:
index - The index to which row status is to required.
Returns:
rowSatus of the value of the Row.
return 1 if active. (even though rowstatus may not be present)

getForwardingEntry

public ForwardingEntry getForwardingEntry(int index)
Gets the Entry at the given index.
Parameters:
index - the index for which the Entry is required.
Returns:
The ForwardingEntry at the Given Index else a null.