|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.agent.SimpleRequestHandler
com.adventnet.snmp.snmp2.agent.BaseSysORTableRequestHandler
public class BaseSysORTableRequestHandler
Handles all requests under
sysORTable group
Both SysORTableRequestHandler and MicroSysORTableRequestHandler
extend this class.
SysORTableRequestHandler,
MicroSysORTableRequestHandler| Field Summary | |
|---|---|
(package private) BaseSnmpAgent |
agentName
|
(package private) java.util.Hashtable |
atomicTable
|
(package private) java.lang.String[] |
descr
|
(package private) int[] |
index
|
(package private) java.lang.String[] |
Oid
|
(package private) static int |
SYSORDESCR
|
(package private) static int |
SYSORID
|
(package private) static int |
SYSORINDEX
|
(package private) static int |
SYSORUPTIME
|
AgentTableModel |
tModelComplete
|
| Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
|---|
instrumentHandler, listener, tableListener, writeEachTime |
| Constructor Summary | |
|---|---|
BaseSysORTableRequestHandler()
Empty Constructor. |
|
BaseSysORTableRequestHandler(BaseSnmpAgent agentRef)
Default Constructor with BaseSnmpAgent reference. |
|
BaseSysORTableRequestHandler(BaseSnmpAgent agentRef,
java.lang.String tableDirectory,
java.lang.String tableName)
Constructor where the directory and table file name can be customised by the user |
|
| Method Summary | |
|---|---|
protected void |
createLogger()
|
static SysOREntry |
createSysOREntry(int sysORIndex,
java.lang.String sysORID,
java.lang.String sysORDescr,
long sysORUpTime)
This is a static method for creating SysOREntry. |
AgentTableModel |
getAgentTableModel()
Getter for the Table Model which maintains the Table Entries |
int[] |
getOidRep()
Retrives the integer representation of OID |
protected int[] |
getSubidList()
Gets the subid list of the oid. |
static int[] |
getSysORTableOidRep()
Gets the SysORTable entry OID - int[] of {1,3,6,1,2,1,1,9,1} |
java.util.Vector |
getTableVector()
Getter for Table Entries Vector |
protected void |
processGetNextRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Processes the GetNextRequest message from the manager for the sysORTable |
protected void |
processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Processes the GetRequest message from the manager for the sysORTable |
protected void |
processGetRequest(SnmpVarBind varb,
int req,
VarBindRequestEvent pe,
SysOREntry entry)
Processes the GetRequest message from the manager for the sysORTable. |
protected void |
processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Processes the SetRequest message from the manager for the sysORTable |
void |
setTableVector(java.util.Vector tableVector)
Setter for the Table Entries for sysORTable |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
|---|
addInstrumentHandler, addRegistrationListener, addTableListener, addUpdateListener, getInstrument, getMibVarHash, getNextRequest, getNextRequest, getObjectHash, getObjectTypeHash, getRequest, getTableListener, getUpdateListener, isWriteEachTime, processGetNextRequest, processGetRequest, processSetRequest, removeRegistrationListener, removeUpdateListener, setRequest, setWriteEachTime, writeIntoFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final int SYSORINDEX
static final int SYSORID
static final int SYSORDESCR
static final int SYSORUPTIME
BaseSnmpAgent agentName
public AgentTableModel tModelComplete
java.util.Hashtable atomicTable
int[] index
java.lang.String[] Oid
java.lang.String[] descr
| Constructor Detail |
|---|
public BaseSysORTableRequestHandler()
public BaseSysORTableRequestHandler(BaseSnmpAgent agentRef)
agentRef - The Agent Reference of the running Agent
public BaseSysORTableRequestHandler(BaseSnmpAgent agentRef,
java.lang.String tableDirectory,
java.lang.String tableName)
agentRef - The Agent Reference of the running AgenttableDirectory - The directory where the fileSystem stores the table filetableName - The file Name in which the fileSystem stores the Table Entries| Method Detail |
|---|
public static int[] getSysORTableOidRep()
public int[] getOidRep()
SimpleRequestHandler
getOidRep in class SimpleRequestHandlerprotected int[] getSubidList()
SimpleRequestHandler
getSubidList in class SimpleRequestHandler
protected void processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
processGetRequest in class SimpleRequestHandlervarb - specifies the VarBindnode - The node for which the Get Request is givenpe - The VarBindRequestEvent created for the Get Request
AgentSnmpException - this wraps all the exceptions thrown
during this process.
protected void processGetRequest(SnmpVarBind varb,
int req,
VarBindRequestEvent pe,
SysOREntry entry)
throws AgentSnmpException
varb - specifies the VarBind.req - The column for which the Get Request is processedpe - The VarBindRequestEvent created for the Get Request.entry - specifies the Row Entry for which the Get Request is processed.
AgentSnmpException - this wraps all the exceptions thrown
during this process.
protected void processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
processSetRequest in class SimpleRequestHandlervarb - specifies the VarBindnode - The node for which the Set Request is givenpe - The VarBindRequestEvent created for the Set Request
AgentSnmpException - this wraps all the exceptions thrown
during this process.
protected void processGetNextRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
processGetNextRequest in class SimpleRequestHandlervarb - specifies the VarBindnode - The node for which the Get Next Request is givenpe - The VarBindRequestEvent created for the Get Next Request
AgentSnmpException - this wraps all the exceptions thrown
during this process.public void setTableVector(java.util.Vector tableVector)
tableVector - The Vector of SysOREntry objects.getTableVector()public AgentTableModel getAgentTableModel()
public java.util.Vector getTableVector()
setTableVector(Vector tableVector)
public static SysOREntry createSysOREntry(int sysORIndex,
java.lang.String sysORID,
java.lang.String sysORDescr,
long sysORUpTime)
sysORIndex - The Index of the SysOREntrysysORId - The Object Identifier specifying the Agents enterprise OIDsysORDescr - The A textual description of the capabilities identified by the
corresponding instance of sysORID.sysORUpTime - The Agent UpTime when this row was created
protected void createLogger()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||