com.adventnet.snmp.snmp2.agent
Interface V3TrapForwardingTableInterface

All Known Implementing Classes:
V3ForwardingTable, V3SimpleTrapForwardingTable

public interface V3TrapForwardingTableInterface
extends 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.

The V3 Trap Forwarding Table provides the necessary information for building a V3 Trap PDU.

See Also:
SnmpTrapService.sendTrap

Method Summary
 java.lang.String getManagerHost(int index)
          Gets the manager host name to which we need to send the Traps
 int getManagerPort(int index)
          Gets the manager port to which we need to send the Traps
 int getNumRows()
          Gets the number of rows of a table.
 int getRowStatus(int index)
          Gets the row status of the table.
 V3ForwardingEntry getV3ForwardingEntry(int index)
          Getter for V3ForwardingEntry.
 java.lang.String getV3ManagerUserContextName(int index)
          Getter for V3 Manager User ContextName.
 java.lang.String getV3ManagerUserName(int index)
          Getter for V3 Manager UserName.
 int getV3ManagerUserSecModel(int index)
          Getter for V3 Manager User security model.
 int getV3SecurityLevel(int index)
          Getter for V3 Manager security level.
 
Methods inherited from interface com.adventnet.snmp.snmp2.agent.TrapForwardingTableInterface
getForwardingEntry, getV1v2ManagerHost, getV1v2ManagerPort, getV1v2ManagerStatus
 

Method Detail

getNumRows

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

getManagerHost

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

getManagerPort

public int getManagerPort(int index)
Gets the manager port to which we need to send the Traps
Parameters:
row - index if a -1 is returned port is assumed to be 162

getRowStatus

public int getRowStatus(int index)
Gets the row status of the table.
Returns:
rowSatus of the value of the Row.
return 1 if active (even though rowstatus may not be present)

getV3ManagerUserName

public java.lang.String getV3ManagerUserName(int index)
Getter for V3 Manager UserName.
Parameters:
index - The value to specify the entry for which the V3 Manager Username is required.
Returns:
The V3 Manager UserName.

getV3ManagerUserContextName

public java.lang.String getV3ManagerUserContextName(int index)
Getter for V3 Manager User ContextName.
Parameters:
index - The Value to specify the entry for which the V3 Manager User ContextName is required.
Returns:
The V3 Manager User ContextName.

getV3ManagerUserSecModel

public int getV3ManagerUserSecModel(int index)
Getter for V3 Manager User security model.
Parameters:
index - The Value of the Entry for which the V3 Manager User security Model is needed.
Returns:
The V3 Manager User Security Model Value.

getV3SecurityLevel

public int getV3SecurityLevel(int index)
Getter for V3 Manager security level.
Parameters:
index - The Value to specify the Entry for which the V3 manager Security Level is needed.
Returns:
The V3 Manager Security Level Value.

getV3ForwardingEntry

public V3ForwardingEntry getV3ForwardingEntry(int index)
Getter for V3ForwardingEntry.
Parameters:
index - The Value to specify the index for which the Entry is needed.
Returns:
The V3ForwardingEntry at the specified index.