com.adventnet.snmp.snmp2.agent
Class SnmpRequestHandler

java.lang.Object
  extended by com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
      extended by com.adventnet.snmp.snmp2.agent.SnmpRequestHandler
All Implemented Interfaces:
VarBindRequestListener, AgentEventListener

 class SnmpRequestHandler
extends SimpleRequestHandler

Handles all requests under snmp group


Field Summary
(package private)  SnmpInstrument instrument
           
(package private) static int SNMPENABLEAUTHENTRAPS
           
(package private) static int SNMPINASNPARSEERRS
           
(package private) static int SNMPINBADCOMMUNITYNAMES
           
(package private) static int SNMPINBADCOMMUNITYUSES
           
(package private) static int SNMPINBADVALUES
           
(package private) static int SNMPINBADVERSIONS
           
(package private) static int SNMPINGENERRS
           
(package private) static int SNMPINGETNEXTS
           
(package private) static int SNMPINGETREQUESTS
           
(package private) static int SNMPINGETRESPONSES
           
(package private) static int SNMPINNOSUCHNAMES
           
(package private) static int SNMPINPKTS
           
(package private) static int SNMPINREADONLYS
           
(package private) static int SNMPINSETREQUESTS
           
(package private) static int SNMPINTOOBIGS
           
(package private) static int SNMPINTOTALREQVARS
           
(package private) static int SNMPINTOTALSETVARS
           
(package private) static int SNMPINTRAPS
           
(package private)  int[] snmpOidRep
           
(package private) static int SNMPOUTBADVALUES
           
(package private) static int SNMPOUTGENERRS
           
(package private) static int SNMPOUTGETNEXTS
           
(package private) static int SNMPOUTGETREQUESTS
           
(package private) static int SNMPOUTGETRESPONSES
           
(package private) static int SNMPOUTNOSUCHNAMES
           
(package private) static int SNMPOUTPKTS
           
(package private) static int SNMPOUTSETREQUESTS
           
(package private) static int SNMPOUTTOOBIGS
           
(package private) static int SNMPOUTTRAPS
           
(package private) static int SNMPPROXYDROPS
           
(package private) static int SNMPSILENTDROPS
           
 
Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
instrumentHandler, listener, tableListener, writeEachTime
 
Constructor Summary
SnmpRequestHandler(AgentSnmpGroup agentRef)
           
 
Method Summary
 int[] getOidRep()
          Retrives the integer representation of OID
protected  int[] getSubidList()
          Gets the subid list of the oid.
protected  void processGetNextRequest(SnmpVarBind varb, AgentNode node, VarBindRequestEvent pe)
          Process the GetNext Request message which is received from PduRequestHandler.
protected  void processGetRequest(SnmpVarBind varb, AgentNode node, VarBindRequestEvent pe)
          Process the Get Request message which is received from PduRequestHandler.
protected  void processSetRequest(SnmpVarBind varb, AgentNode node, VarBindRequestEvent pe)
          Process the Set Request message which is received from PduRequestHandler.
 
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

SNMPINPKTS

static final int SNMPINPKTS
See Also:
Constant Field Values

SNMPOUTPKTS

static final int SNMPOUTPKTS
See Also:
Constant Field Values

SNMPINBADVERSIONS

static final int SNMPINBADVERSIONS
See Also:
Constant Field Values

SNMPINBADCOMMUNITYNAMES

static final int SNMPINBADCOMMUNITYNAMES
See Also:
Constant Field Values

SNMPINBADCOMMUNITYUSES

static final int SNMPINBADCOMMUNITYUSES
See Also:
Constant Field Values

SNMPINASNPARSEERRS

static final int SNMPINASNPARSEERRS
See Also:
Constant Field Values

SNMPINTOOBIGS

static final int SNMPINTOOBIGS
See Also:
Constant Field Values

SNMPINNOSUCHNAMES

static final int SNMPINNOSUCHNAMES
See Also:
Constant Field Values

SNMPINBADVALUES

static final int SNMPINBADVALUES
See Also:
Constant Field Values

SNMPINREADONLYS

static final int SNMPINREADONLYS
See Also:
Constant Field Values

SNMPINGENERRS

static final int SNMPINGENERRS
See Also:
Constant Field Values

SNMPINTOTALREQVARS

static final int SNMPINTOTALREQVARS
See Also:
Constant Field Values

SNMPINTOTALSETVARS

static final int SNMPINTOTALSETVARS
See Also:
Constant Field Values

SNMPINGETREQUESTS

static final int SNMPINGETREQUESTS
See Also:
Constant Field Values

SNMPINGETNEXTS

static final int SNMPINGETNEXTS
See Also:
Constant Field Values

SNMPINSETREQUESTS

static final int SNMPINSETREQUESTS
See Also:
Constant Field Values

SNMPINGETRESPONSES

static final int SNMPINGETRESPONSES
See Also:
Constant Field Values

SNMPINTRAPS

static final int SNMPINTRAPS
See Also:
Constant Field Values

SNMPOUTTOOBIGS

static final int SNMPOUTTOOBIGS
See Also:
Constant Field Values

SNMPOUTNOSUCHNAMES

static final int SNMPOUTNOSUCHNAMES
See Also:
Constant Field Values

SNMPOUTBADVALUES

static final int SNMPOUTBADVALUES
See Also:
Constant Field Values

SNMPOUTGENERRS

static final int SNMPOUTGENERRS
See Also:
Constant Field Values

SNMPOUTGETREQUESTS

static final int SNMPOUTGETREQUESTS
See Also:
Constant Field Values

SNMPOUTGETNEXTS

static final int SNMPOUTGETNEXTS
See Also:
Constant Field Values

SNMPOUTSETREQUESTS

static final int SNMPOUTSETREQUESTS
See Also:
Constant Field Values

SNMPOUTGETRESPONSES

static final int SNMPOUTGETRESPONSES
See Also:
Constant Field Values

SNMPOUTTRAPS

static final int SNMPOUTTRAPS
See Also:
Constant Field Values

SNMPENABLEAUTHENTRAPS

static final int SNMPENABLEAUTHENTRAPS
See Also:
Constant Field Values

SNMPSILENTDROPS

static final int SNMPSILENTDROPS
See Also:
Constant Field Values

SNMPPROXYDROPS

static final int SNMPPROXYDROPS
See Also:
Constant Field Values

snmpOidRep

int[] snmpOidRep

instrument

SnmpInstrument instrument
Constructor Detail

SnmpRequestHandler

public SnmpRequestHandler(AgentSnmpGroup agentRef)
Method Detail

getOidRep

public int[] getOidRep()
Description copied from class: SimpleRequestHandler
Retrives the integer representation of OID

Overrides:
getOidRep in class SimpleRequestHandler
Returns:
the integer array of OID

getSubidList

protected int[] getSubidList()
Description copied from class: SimpleRequestHandler
Gets the subid list of the oid.

Overrides:
getSubidList in class SimpleRequestHandler
Returns:
the integer array of subid list

processGetRequest

protected void processGetRequest(SnmpVarBind varb,
                                 AgentNode node,
                                 VarBindRequestEvent pe)
                          throws AgentSnmpException
Description copied from class: SimpleRequestHandler
Process the Get Request message which is received from PduRequestHandler.

Overrides:
processGetRequest in class SimpleRequestHandler
Parameters:
varb - The received varbind .
node - The node for which Get Request is to be done.
pe - The VarBind Request Event created by this Get request.
Throws:
AgentSnmpException - This wraps all the Exceptions thrown while Processing the Event.

processSetRequest

protected void processSetRequest(SnmpVarBind varb,
                                 AgentNode node,
                                 VarBindRequestEvent pe)
                          throws AgentSnmpException
Description copied from class: SimpleRequestHandler
Process the Set Request message which is received from PduRequestHandler.

Overrides:
processSetRequest in class SimpleRequestHandler
Parameters:
varb - The received varbind.
node - The node for which Get Next Request is to be done.
pe - The VarBind Request Event created by this GetNext request.
Throws:
AgentSnmpException - This wraps all the Exceptions thrown while Processing the Event.

processGetNextRequest

protected void processGetNextRequest(SnmpVarBind varb,
                                     AgentNode node,
                                     VarBindRequestEvent pe)
                              throws AgentSnmpException
Description copied from class: SimpleRequestHandler
Process the GetNext Request message which is received from PduRequestHandler.

Overrides:
processGetNextRequest in class SimpleRequestHandler
Parameters:
varb - The received varbind.
node - The node for which Get Next Request is to be done.
pe - The VarBind Request Event created by this GetNext request.
Throws:
AgentSnmpException - This wraps all the Exceptions thrown while Processing the Event.