|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
|
+--com.adventnet.snmp.snmp2.agent.BaseTrapForwardingTable
|
+--com.adventnet.snmp.snmp2.agent.SimpleTrapForwardingTable
|
+--com.adventnet.snmp.snmp2.agent.V3SimpleTrapForwardingTable
This class Handles all requests for the v3TrapForwardingTable group. When the Agent is run as Snmp Version 3, this class handles the Forwarding the traps to registered Managers
| Field Summary | |
(package private) static int |
COLUMNCOUNT
|
(package private) V3ForwardingTable |
forwardingTable
|
(package private) int[] |
forwardingTableOidRep
|
(package private) static int |
MANAGERCOMMUNITY
|
(package private) static int |
MANAGERHOST
|
(package private) static int |
MANAGERPORT
|
(package private) static int |
MANAGERRETRIES
|
(package private) static int |
MANAGERTIMEOUT
|
(package private) static int |
MANAGERVERSION
|
(package private) static int |
ROWSTATUS
|
(package private) AgentTableModel |
tModelComplete
|
(package private) static int |
V3MANAGERHOSTTYPE
|
(package private) static int |
V3MANAGERUSERCONTEXTNAME
|
(package private) static int |
V3MANAGERUSERNAME
|
(package private) static int |
V3MANAGERUSERSECMODEL
|
(package private) static int |
V3SECURITYLEVEL
|
| Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleTrapForwardingTable |
forwardingTable |
| Fields inherited from class com.adventnet.snmp.snmp2.agent.BaseTrapForwardingTable |
COLUMNCOUNT,
COMMUNITY,
forwardingTable,
forwardingTableOidRep,
MANAGERHOST,
MANAGERHOSTTYPE,
MANAGERPORT,
RETRIES,
ROWSTATUS,
TIMEOUT,
tModelComplete,
VERSION |
| Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
instrumentHandler,
listener,
tableListener,
writeEachTime |
| Constructor Summary | |
V3SimpleTrapForwardingTable()
Primary Constructor |
|
V3SimpleTrapForwardingTable(V3ForwardingTable table)
Constructor with the V3ForwardingTable reference. |
|
| Method Summary | |
(package private) boolean |
checkForRowStatus(V3ForwardingEntry entry)
|
static V3ForwardingEntry |
createV3ForwardingEntry(java.lang.Integer v3ManagerHostType,
java.lang.String v3ManagerHost,
java.lang.Integer v3ManagerPort,
java.lang.Integer v3ManagerVersion,
java.lang.String v3ManagerCommunity,
java.lang.String v3ManagerUserName,
java.lang.Long v3ManagerUserSecModel,
java.lang.Integer v3SecurityLevel,
java.lang.String v3ManagerUserContextName,
java.lang.Long v3ManagerTimeOut,
java.lang.Long v3ManagerRetries)
Creates a V3ForwardingEntry object for the V3SimpleTrapForwardingTable with the RowStatus value as Active |
static V3ForwardingEntry |
createV3ForwardingEntry(java.lang.Integer v3ManagerHostType,
java.lang.String v3ManagerHost,
java.lang.Integer v3ManagerPort,
java.lang.Integer v3ManagerVersion,
java.lang.String v3ManagerCommunity,
java.lang.String v3ManagerUserName,
java.lang.Long v3ManagerUserSecModel,
java.lang.Integer v3SecurityLevel,
java.lang.String v3ManagerUserContextName,
java.lang.Long v3ManagerTimeOut,
java.lang.Long v3ManagerRetries,
java.lang.Integer v3ManagerStatus)
Creates a V3ForwardingEntry object for the V3SimpleTrapForwardingTable |
static V3ForwardingEntry |
createV3ForwardingEntry(int v3Id,
java.lang.String v3ManagerHost,
int v3ManagerPort,
java.lang.String v3ManagerUserName,
int v3ManagerUserSecModel,
java.lang.String v3ManagerUserContextName,
java.lang.Integer v3SecurityLevel)
Creates a V3ForwardingEntry object for the V3SimpleTrapForwardingTable |
static V3ForwardingEntry |
createV3ForwardingEntry(java.lang.String v3ManagerHost,
java.lang.Integer v3ManagerPort,
java.lang.Integer v3ManagerVersion,
java.lang.String v3ManagerCommunity,
java.lang.String v3ManagerUserName,
java.lang.Long v3ManagerUserSecModel,
java.lang.Integer v3SecurityLevel,
java.lang.String v3ManagerUserContextName,
java.lang.Long v3ManagerTimeOut,
java.lang.Long v3ManagerRetries)
Creates a V3ForwardingEntry object for the V3SimpleTrapForwardingTable with the RowStatus value as Active |
static V3ForwardingEntry |
createV3ForwardingEntry(java.lang.String v3ManagerHost,
java.lang.Integer v3ManagerPort,
java.lang.Integer v3ManagerVersion,
java.lang.String v3ManagerCommunity,
java.lang.String v3ManagerUserName,
java.lang.Long v3ManagerUserSecModel,
java.lang.Integer v3SecurityLevel,
java.lang.String v3ManagerUserContextName,
java.lang.Long v3ManagerTimeOut,
java.lang.Long v3ManagerRetries,
java.lang.Integer v3ManagerStatus)
Creates a V3ForwardingEntry object for the V3SimpleTrapForwardingTable |
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()
Getter of number of rows of the table |
int[] |
getOidRep()
This method returns the OID representation of the Entry node of the V3TrapForwardingTable |
int |
getRowStatus(int index)
Gets the row status of the table. |
protected int[] |
getSubidList()
This method returns the subId list of the columns in the v3TrapForwardingTable |
java.util.Vector |
getTableVector()
Getter of the Table Vector of the V3TrapForwardingTable |
V3ForwardingEntry |
getV3ForwardingEntry(int index)
Getter for the Entry at the speified index. |
java.lang.String |
getV3ManagerHost(int index)
Getter for the Targetted Manager Host. |
int |
getV3ManagerPort(int index)
Getter for the Targetted Manager Port. |
java.lang.String |
getV3ManagerUserContextName(int index)
Getter for the V3 Manager's User Context Name |
java.lang.String |
getV3ManagerUserName(int index)
Getter for The V3 Manager's User Name based on the row index |
int |
getV3ManagerUserSecModel(int index)
Getter for the V3 Manager's User Security Model |
int |
getV3RowStatus(int index)
Getter for the Entry Status. |
int |
getV3SecurityLevel(int index)
Getter for the V3 Manager Security Level |
protected void |
processGetNextRequest(java.util.Vector varbinds,
java.util.Vector nodes,
VarBindRequestEvent pe)
This method is used for processing the incoming GETNEXT Requests |
protected void |
processGetRequest(java.util.Vector varbinds,
java.util.Vector nodes,
VarBindRequestEvent pe)
This method along with processReadRequest is used for processing the GET Requests |
protected java.util.Vector |
processReadRequest(VarBindRequestEvent pe,
V3ForwardingEntry entry,
java.util.Vector attributesList,
java.util.Hashtable varbindIndexHash)
This method along with processGetRequest, will be used for processing the incoming GET Requests |
protected void |
processSetRequest(java.util.Vector varbinds,
java.util.Vector nodes,
VarBindRequestEvent pe)
This method along with processWriteRequest is used for processing the incoming SET Requests |
java.util.Vector |
processWriteRequest(java.lang.String instanceString,
java.util.Vector list,
VarBindRequestEvent pe,
java.util.Hashtable varbindIndexHash)
This method along with the ProcessSetRequest is used for processing the Incoming Set Requests |
(package private) void |
setOidRep(int[] oidRep)
|
void |
setTableVector(java.util.Vector tableVector)
Setter for the Table Vector of the V3TrapForwardingTable |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.SimpleTrapForwardingTable |
createForwardingEntry |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.BaseTrapForwardingTable |
checkForRowStatus,
createForwardingEntry,
createForwardingEntry,
createForwardingEntry,
createForwardingEntry,
getForwardingEntry,
getV1v2ManagerHost,
getV1v2ManagerPort,
getV1v2ManagerStatus,
processReadRequest |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
addInstrumentHandler,
addRegistrationListener,
addTableListener,
addUpdateListener,
getInstrument,
getMibVarHash,
getNextRequest,
getObjectHash,
getObjectTypeHash,
getRequest,
getTableListener,
isWriteEachTime,
processGetNextRequest,
processGetRequest,
processSetRequest,
removeRegistrationListener,
removeUpdateListener,
setRequest,
setWriteEachTime,
writeIntoFile |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
static final int V3MANAGERHOSTTYPE
static final int MANAGERHOST
static final int MANAGERPORT
static final int MANAGERVERSION
static final int MANAGERCOMMUNITY
static final int V3MANAGERUSERNAME
static final int V3MANAGERUSERSECMODEL
static final int V3SECURITYLEVEL
static final int V3MANAGERUSERCONTEXTNAME
static final int MANAGERTIMEOUT
static final int MANAGERRETRIES
static final int ROWSTATUS
static final int COLUMNCOUNT
int[] forwardingTableOidRep
AgentTableModel tModelComplete
V3ForwardingTable forwardingTable
| Constructor Detail |
public V3SimpleTrapForwardingTable()
public V3SimpleTrapForwardingTable(V3ForwardingTable table)
forTable - the V3ForwardingTable instance.| Method Detail |
public int[] getOidRep()
void setOidRep(int[] oidRep)
protected int[] getSubidList()
public void setTableVector(java.util.Vector tableVector)
tableVector - a Vector of V3ForwardingEntry objects sorted according to the instancegetTableVector()public java.util.Vector getTableVector()
setTableVector(Vector tableVector)
protected java.util.Vector processReadRequest(VarBindRequestEvent pe,
V3ForwardingEntry entry,
java.util.Vector attributesList,
java.util.Hashtable varbindIndexHash)
pe - VarbindRequestEvententry - Entry Object, which contains getter/setter methods for the attributes in this Table GroupattributesList - List of SnmpVarbinds of Attributes for which GET Request is to be perfortmedvarbindIndexHash - Hashtable for storing the index of the incoming varbinds
public java.util.Vector processWriteRequest(java.lang.String instanceString,
java.util.Vector list,
VarBindRequestEvent pe,
java.util.Hashtable varbindIndexHash)
instanceString - Index of the row in which SET Request is to be performedlist - List of SnmpVarbinds of Attributes for which SET is performedpe - VarbindRequest EventvarbindIndexHash - Hashtable for storing the index of the incoming varbinds
protected void processGetRequest(java.util.Vector varbinds,
java.util.Vector nodes,
VarBindRequestEvent pe)
varbinds - List of SnmpVarbinds for which GET Request is to be performednodes - List of Agent Nodes for which GET Request is performedpe - VarbindRequest Event
protected void processSetRequest(java.util.Vector varbinds,
java.util.Vector nodes,
VarBindRequestEvent pe)
varbinds - List of SnmpVarbinds for which SET Request is performednodes - List of Agent Nodes for which SET Request is performedpe - VarbindRequest Event
protected void processGetNextRequest(java.util.Vector varbinds,
java.util.Vector nodes,
VarBindRequestEvent pe)
varbinds - List of varbinds for which the GETNEXT Request is to be performednodes - List of AgentNodes for which GETNEXT Request is to be performedpe - VarbindRequest Event
boolean checkForRowStatus(V3ForwardingEntry entry)
throws AgentSnmpException
public int getNumRows()
public java.lang.String getV3ManagerHost(int index)
ind - The int index of the Entry for which the Host is to be
retrieved.public int getV3ManagerPort(int index)
ind - The int index of the Entry for which the port is to be
retrieved.public int getV3RowStatus(int index)
ind - The int index of the Entry for which the Status is to be
retrieved.public java.lang.String getV3ManagerUserName(int index)
index - The row Indexpublic int getV3ManagerUserSecModel(int index)
index - The Row Indexpublic java.lang.String getV3ManagerUserContextName(int index)
index - The Row Indexpublic int getV3SecurityLevel(int index)
index - The Row Indexpublic V3ForwardingEntry getV3ForwardingEntry(int index)
ind - The int index of the Entry which is to be retrieved.
public static V3ForwardingEntry createV3ForwardingEntry(java.lang.String v3ManagerHost,
java.lang.Integer v3ManagerPort,
java.lang.Integer v3ManagerVersion,
java.lang.String v3ManagerCommunity,
java.lang.String v3ManagerUserName,
java.lang.Long v3ManagerUserSecModel,
java.lang.Integer v3SecurityLevel,
java.lang.String v3ManagerUserContextName,
java.lang.Long v3ManagerTimeOut,
java.lang.Long v3ManagerRetries)
v3ManagerHost - The String specifying the HostName or the IpAddress of the
Manager to which the Notification or Trap is to be forwardedv3ManagerPort - The Integer specifying Manager's Port to which the
Notification or Trap is to be forwardedv3ManagerVersion - The Integer specifying Version with which the
Notification or Trap is to be forwardedv3ManagerCommunity - The String specifying the Community with
which the Notification or Trap is to be forwarded.v3ManagerUserName - The String specifying the V3 Manager's registered User Namev3ManagerUserSecModel - The Long specifying the V3 Manager's User Security Modelv3ManagerUserContextName - The String specifying the V3 Manager's User Context Namev3SecurityLevel - The V3 manager's security level value.v3ManagerTimeOut - The Long specifying the TimeOut value for the TrapPDU.v3ManagerRetries - The Long specifying the Retries value for the TrapPDU.
public static V3ForwardingEntry createV3ForwardingEntry(java.lang.Integer v3ManagerHostType,
java.lang.String v3ManagerHost,
java.lang.Integer v3ManagerPort,
java.lang.Integer v3ManagerVersion,
java.lang.String v3ManagerCommunity,
java.lang.String v3ManagerUserName,
java.lang.Long v3ManagerUserSecModel,
java.lang.Integer v3SecurityLevel,
java.lang.String v3ManagerUserContextName,
java.lang.Long v3ManagerTimeOut,
java.lang.Long v3ManagerRetries)
v3ManagerHostType - the type of the IPAddress of the Manager with which the Entry is to be createdv3ManagerHost - The String specifying IpAddress of the
Manager to which the Notification or Trap is to be forwardedv3ManagerPort - The Integer specifying Manager's Port to which the
Notification or Trap is to be forwardedv3ManagerVersion - The Integer specifying Version with which the
Notification or Trap is to be forwardedv3ManagerCommunity - The String specifying the Community with
which the Notification or Trap is to be forwarded.v3ManagerUserName - The String specifying the V3 Manager's registered User Namev3ManagerUserSecModel - The Long specifying the V3 Manager's User Security Modelv3ManagerUserContextName - The String specifying the V3 Manager's User Context Namev3SecurityLevel - The V3 manager's security level value.v3ManagerTimeOut - The Long specifying the TimeOut value for the TrapPDU.v3ManagerRetries - The Long specifying the Retries value for the TrapPDU.
public static V3ForwardingEntry createV3ForwardingEntry(java.lang.String v3ManagerHost,
java.lang.Integer v3ManagerPort,
java.lang.Integer v3ManagerVersion,
java.lang.String v3ManagerCommunity,
java.lang.String v3ManagerUserName,
java.lang.Long v3ManagerUserSecModel,
java.lang.Integer v3SecurityLevel,
java.lang.String v3ManagerUserContextName,
java.lang.Long v3ManagerTimeOut,
java.lang.Long v3ManagerRetries,
java.lang.Integer v3ManagerStatus)
v3ManagerHost - The String specifying the HostName or the IpAddress of the
Manager to which the Notification or Trap is to be forwardedv3ManagerPort - The Integer specifying Manager's Port to which the
Notification or Trap is to be forwardedv3ManagerVersion - The Integer specifying Version with which the
Notification or Trap is to be forwardedv3ManagerCommunity - The String specifying the Community with
which the Notification or Trap is to be forwarded.v3ManagerUserName - The String specifying the V3 Manager's registered User Namev3ManagerUserSecModel - The Long specifying the V3 Manager's User Security Modelv3ManagerUserContextName - The String specifying the V3 Manager's User Context Namev3SecurityLevel - The V3 manager's security level value.v3ManagerTimeOut - The Long specifying the TimeOut value for the TrapPDU.v3ManagerRetries - The Long specifying the Retries value for the TrapPDU.v3ManagerStatus - The Integer specifying the status value for this Entry (1 -5).
public static V3ForwardingEntry createV3ForwardingEntry(java.lang.Integer v3ManagerHostType,
java.lang.String v3ManagerHost,
java.lang.Integer v3ManagerPort,
java.lang.Integer v3ManagerVersion,
java.lang.String v3ManagerCommunity,
java.lang.String v3ManagerUserName,
java.lang.Long v3ManagerUserSecModel,
java.lang.Integer v3SecurityLevel,
java.lang.String v3ManagerUserContextName,
java.lang.Long v3ManagerTimeOut,
java.lang.Long v3ManagerRetries,
java.lang.Integer v3ManagerStatus)
v3ManagerHostType - the type of the IPAddress of the Manager with which the Entry is to be createdv3ManagerHost - The String specifying the HostName or the IpAddress of the
Manager to which the Notification or Trap is to be forwardedv3ManagerPort - The Integer specifying Manager's Port to which the
Notification or Trap is to be forwardedv3ManagerVersion - The Integer specifying Version with which the
Notification or Trap is to be forwardedv3ManagerCommunity - The String specifying the Community with
which the Notification or Trap is to be forwarded.v3ManagerUserName - The String specifying the V3 Manager's registered User Namev3ManagerUserSecModel - The Long specifying the V3 Manager's User Security Modelv3ManagerUserContextName - The String specifying the V3 Manager's User Context Namev3SecurityLevel - The V3 manager's security level value.v3ManagerTimeOut - The Long specifying the TimeOut value for the TrapPDU.v3ManagerRetries - The Long specifying the Retries value for the TrapPDU.v3ManagerStatus - The Integer specifying the status value for this Entry (1 -5).
public static V3ForwardingEntry createV3ForwardingEntry(int v3Id,
java.lang.String v3ManagerHost,
int v3ManagerPort,
java.lang.String v3ManagerUserName,
int v3ManagerUserSecModel,
java.lang.String v3ManagerUserContextName,
java.lang.Integer v3SecurityLevel)
v3Id - The int specifying the index - Index has been modified.v3ManagerHost - The String specifying the HostName or the IpAddress of the
Manager to which the Notification or Trap is to be forwardedv3ManagerPort - The int specifying Manager's Port to which the
Notification or Trap is to be forwardedv3ManagerUserName - The String specifying the V3 Manager's registered User Namev3ManagerUserSecModel - The int specifying the V3 Manager's User Security Modelv3ManagerUserContextName - The String specifying the V3 Manager's User Context Namev3SecurityLevel - The V3 manager's security level value.public java.lang.String getManagerHost(int index)
index - of the tablepublic int getManagerPort(int index)
row - index
if a -1 is returned
port is assumed to be 162public int getRowStatus(int index)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||