|
|||||||||
| 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.SnmpAgentInfoRequestHandler
public class SnmpAgentInfoRequestHandler
Handles all requests under snmpAgentInfo group
| Field Summary | |
|---|---|
SnmpAgent |
agentName
The SnmpAgent reference. |
(package private) java.util.Hashtable |
atomicTable
|
(package private) SnmpAgentInfoInstrument |
instrument
|
(package private) static int |
SNMPAGENTIPADDRESS
|
(package private) static int |
SNMPAGENTOPERSTATUS
|
(package private) static int |
SNMPAGENTPORTNUMER
|
(package private) static int |
SNMPAGENTUPTIME
|
(package private) static int |
SNMPAGENTVERSION
|
| Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
|---|
instrumentHandler, listener, tableListener, writeEachTime |
| Constructor Summary | |
|---|---|
SnmpAgentInfoRequestHandler(SnmpAgent agentRef)
Constructor with the SnmpAgent Reference. |
|
| Method Summary | |
|---|---|
static java.util.Hashtable |
getMibVarHash()
Deprecated. - use getObjectHash() for getting the details of Sub-Ids Method to retrun the HashTable of MibVars. |
java.util.Hashtable |
getObjectHash()
Same as method getMibVarHash, but non-static.Duplicated to have backward compatibility Method to retrun the HashTable of AttributeName - SubId pairs |
int[] |
getOidRep()
Getter for the OID representation. |
static int[] |
getSnmpAgentInfoOidRep()
Method to get the SnmpAgentInfo OID as a int[] representation |
protected int[] |
getSubidList()
Getter for the SubId list in this Group. |
protected void |
processGetNextRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Method handling the GetNextRequests made on this Group. |
protected void |
processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Method handling the GetRequests made on this Group. |
protected void |
processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Method handling the SetRequests made on this Group. |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
|---|
addInstrumentHandler, addRegistrationListener, addTableListener, addUpdateListener, getInstrument, getNextRequest, getNextRequest, 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 SNMPAGENTVERSION
static final int SNMPAGENTIPADDRESS
static final int SNMPAGENTPORTNUMER
static final int SNMPAGENTUPTIME
static final int SNMPAGENTOPERSTATUS
public SnmpAgent agentName
java.util.Hashtable atomicTable
SnmpAgentInfoInstrument instrument
| Constructor Detail |
|---|
public SnmpAgentInfoRequestHandler(SnmpAgent agentRef)
agentRef - the SnmpAgent Reference| Method Detail |
|---|
public static int[] getSnmpAgentInfoOidRep()
public int[] getOidRep()
getOidRep in class SimpleRequestHandlerprotected int[] getSubidList()
getSubidList in class SimpleRequestHandlerpublic static java.util.Hashtable getMibVarHash()
public java.util.Hashtable getObjectHash()
getObjectHash in class SimpleRequestHandler
protected void processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
processGetRequest in class SimpleRequestHandlervarb - the SnmpVarBind of the Request.node - the AgentNode associated with the Request.pe - The VarBindRequestEvent created for this request.
AgentSnmpException - This wraps all the Exceptions thrown while
processing this event.
protected void processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
processSetRequest in class SimpleRequestHandlervarb - the SnmpVarBind of the Request.node - the AgentNode associated with the Request.pe - The VarBindRequestEvent created for this request.
AgentSnmpException - This wraps all the Exceptions thrown while
processing this event.
protected void processGetNextRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
processGetNextRequest in class SimpleRequestHandlervarb - the SnmpVarBind of the Request.node - the AgentNode associated with the request.pe - The VarBindRequestEvent created for this request.
AgentSnmpException - This wraps all the Exceptions thrown while
processing this event.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||