com.adventnet.snmp.snmp2.agent
Class SnmpAgentInfoRequestHandler

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
        |
        +--com.adventnet.snmp.snmp2.agent.SnmpAgentInfoRequestHandler

public class SnmpAgentInfoRequestHandler
extends SimpleRequestHandler

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
(package private) static void ()
           
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, getObjectTypeHash, getRequest, getTableListener, 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

SNMPAGENTVERSION

static final int SNMPAGENTVERSION

SNMPAGENTIPADDRESS

static final int SNMPAGENTIPADDRESS

SNMPAGENTPORTNUMER

static final int SNMPAGENTPORTNUMER

SNMPAGENTUPTIME

static final int SNMPAGENTUPTIME

SNMPAGENTOPERSTATUS

static final int SNMPAGENTOPERSTATUS

agentName

public SnmpAgent agentName
The SnmpAgent reference.

atomicTable

java.util.Hashtable atomicTable

instrument

SnmpAgentInfoInstrument instrument
Constructor Detail

SnmpAgentInfoRequestHandler

public SnmpAgentInfoRequestHandler(SnmpAgent agentRef)
Constructor with the SnmpAgent Reference.
Parameters:
agentRef - the SnmpAgent Reference
Method Detail

getSnmpAgentInfoOidRep

public static int[] getSnmpAgentInfoOidRep()
Method to get the SnmpAgentInfo OID as a int[] representation
Returns:
int[] OID representation - {1,3,6,1,4,1,2162,10,3,1,1}

getOidRep

public int[] getOidRep()
Getter for the OID representation.
Overrides:
getOidRep in class SimpleRequestHandler
Returns:
int[] OID representation - {1,3,6,1,4,1,2162,10,3,1,1}

getSubidList

protected int[] getSubidList()
Getter for the SubId list in this Group.
Overrides:
getSubidList in class SimpleRequestHandler
Returns:
the columnID's int[] i.e., the SubIDs - {1,2,3,4,5}

static void ()

getMibVarHash

public static java.util.Hashtable getMibVarHash()
Deprecated. - use getObjectHash() for getting the details of Sub-Ids Method to retrun the HashTable of MibVars.

Returns:
Hashatable of the MibVars.

getObjectHash

public 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
Overrides:
getObjectHash in class SimpleRequestHandler

processGetRequest

protected void processGetRequest(SnmpVarBind varb,
                                 AgentNode node,
                                 VarBindRequestEvent pe)
                          throws AgentSnmpException
Method handling the GetRequests made on this Group.
Overrides:
processGetRequest in class SimpleRequestHandler
Parameters:
varb - the SnmpVarBind of the Request.
node - the AgentNode associated with the Request.
pe - The VarBindRequestEvent created for this request.
Throws:
AgentSnmpException - This wraps all the Exceptions thrown while processing this event.

processSetRequest

protected void processSetRequest(SnmpVarBind varb,
                                 AgentNode node,
                                 VarBindRequestEvent pe)
                          throws AgentSnmpException
Method handling the SetRequests made on this Group.
Overrides:
processSetRequest in class SimpleRequestHandler
Parameters:
varb - the SnmpVarBind of the Request.
node - the AgentNode associated with the Request.
pe - The VarBindRequestEvent created for this request.
Throws:
AgentSnmpException - This wraps all the Exceptions thrown while processing this event.

processGetNextRequest

protected void processGetNextRequest(SnmpVarBind varb,
                                     AgentNode node,
                                     VarBindRequestEvent pe)
                              throws AgentSnmpException
Method handling the GetNextRequests made on this Group.
Overrides:
processGetNextRequest in class SimpleRequestHandler
Parameters:
varb - the SnmpVarBind of the Request.
node - the AgentNode associated with the request.
pe - The VarBindRequestEvent created for this request.
Throws:
AgentSnmpException - This wraps all the Exceptions thrown while processing this event.