|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.mibs.agent.SnmpAgentDataHandler
public class SnmpAgentDataHandler
This class handles all the SnmpAgentData interfaces of the interpretted approach. Registers as a listener for each of the nodes etc with SnmpAgent
This class takes care of the script based Interpretted Approach of FILE-COMMAND , DATABASE-COMMAND etc.
| Field Summary | |
|---|---|
(package private) int |
agentVersion
|
(package private) boolean |
createRow
|
(package private) MibNode |
mibNode
|
(package private) com.adventnet.snmp.mibs.AgentMibOperations |
mibOps
|
(package private) com.adventnet.snmp.mibs.AgentMibNode |
node
|
| Constructor Summary | |
|---|---|
SnmpAgentDataHandler(com.adventnet.snmp.mibs.AgentMibNode node,
com.adventnet.snmp.mibs.AgentMibOperations mibOps)
constructor initializing AgentMibNode and AgentMibOperations. |
|
| Method Summary | |
|---|---|
(package private) void |
checkGetData(SnmpVarBind varb,
MibNode temp,
int version)
|
void |
getNextRequest(VarBindRequestEvent pe,
AgentResource agentSource)
Implementations of VarBindRequestListener.Returns the value for the next OID. |
(package private) SnmpVar |
getNextRequestValue(SnmpVarBind varbind,
com.adventnet.snmp.mibs.AgentMibNode toSend,
int version)
|
void |
getRequest(VarBindRequestEvent pe)
Implementations of VarBindRequestListener.Returns the value for the OID. |
int[] |
getSubidList()
Part of interface .Returns the Child OIDs if node is a table. |
(package private) boolean |
isReplacable()
This method lets us know if this listener is replacable ie is actually supporting a DEFVAL |
void |
setRequest(VarBindRequestEvent pe)
Implementations of VarBindRequestListener.Sets the value to the given OID. |
(package private) SnmpVar |
setRequestValue(SnmpVarBind varbind,
com.adventnet.snmp.mibs.AgentMibNode temp,
VarBindRequestEvent pe)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
com.adventnet.snmp.mibs.AgentMibNode node
MibNode mibNode
com.adventnet.snmp.mibs.AgentMibOperations mibOps
boolean createRow
int agentVersion
| Constructor Detail |
|---|
public SnmpAgentDataHandler(com.adventnet.snmp.mibs.AgentMibNode node,
com.adventnet.snmp.mibs.AgentMibOperations mibOps)
| Method Detail |
|---|
public void getRequest(VarBindRequestEvent pe)
throws AgentSnmpException
getRequest in interface VarBindRequestListenerpe - having OID and related details for the get request.
AgentSnmpException - with the index of the
varbind which has failed in AgentSnmpExceptionVarBindRequestEvent
public void getNextRequest(VarBindRequestEvent pe,
AgentResource agentSource)
throws AgentSnmpException
getNextRequest in interface VarBindRequestListenerpe - having OID and related details for the get next request.agentSource - the AgentResource created for this request.
AgentSnmpException - with the index of the
varbind which has failed in AgentSnmpExceptionVarBindRequestEvent
public void setRequest(VarBindRequestEvent pe)
throws AgentSnmpException
setRequest in interface VarBindRequestListenerpe - having OID ,value and related details for the set request.
AgentSnmpException - with the index of the
varbind which has failed in AgentSnmpExceptionVarBindRequestEventpublic int[] getSubidList()
void checkGetData(SnmpVarBind varb,
MibNode temp,
int version)
throws AgentSnmpException
AgentSnmpException
SnmpVar getNextRequestValue(SnmpVarBind varbind,
com.adventnet.snmp.mibs.AgentMibNode toSend,
int version)
throws MibException,
AgentSnmpException
MibException
AgentSnmpException
SnmpVar setRequestValue(SnmpVarBind varbind,
com.adventnet.snmp.mibs.AgentMibNode temp,
VarBindRequestEvent pe)
throws AgentSnmpException
AgentSnmpExceptionboolean isReplacable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||