com.adventnet.snmp.snmp2.agent.vacm
Class VacmMIBViewsRequestHandler

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

public class VacmMIBViewsRequestHandler
extends SimpleRequestHandler

Handles all requests under vacmMIBViews group.


Field Summary
protected  java.lang.Integer vacmViewSpinLock
          This is the Vacm View SpinLock Variable.
(package private) static int VACMVIEWSPINLOCK
           
 
Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
instrumentHandler, listener, tableListener, writeEachTime
 
Constructor Summary
VacmMIBViewsRequestHandler(SnmpAgent agentRef)
          Constructor for the VacmMIBViewsRequestHandler with the Snmp Agent Reference.
 
Method Summary
 int[] getOidRep()
          Retrives the integer representation of OID
protected  int[] getSubidList()
          Gets the subid list of the oid.
static int[] getVacmMIBViewsOidRep()
          Getter for the Vacm MIBViews Oid Representation.
 java.lang.Integer getVacmViewSpinLock()
          Handles the SNMP Get Request for vacmViewSpinLock.
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.
 void setVacmViewSpinLock(SnmpVar var)
          Handles the SNMP Set Request for vacmViewSpinLock
 
Methods inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
addInstrumentHandler, addRegistrationListener, addTableListener, addUpdateListener, getInstrument, getMibVarHash, getNextRequest, getObjectHash, 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

VACMVIEWSPINLOCK

static final int VACMVIEWSPINLOCK

vacmViewSpinLock

protected java.lang.Integer vacmViewSpinLock
This is the Vacm View SpinLock Variable.
Constructor Detail

VacmMIBViewsRequestHandler

public VacmMIBViewsRequestHandler(SnmpAgent agentRef)
Constructor for the VacmMIBViewsRequestHandler with the Snmp Agent Reference.
Parameters:
agentRef - The Snmp Agent Reference.
Method Detail

getVacmMIBViewsOidRep

public static int[] getVacmMIBViewsOidRep()
Getter for the Vacm MIBViews Oid Representation.
Returns:
The Vacm MIBViews Oid.

getOidRep

public int[] getOidRep()
Description copied from class: SimpleRequestHandler
Retrives the integer representation of OID
Overrides:
getOidRep in class SimpleRequestHandler
Tags copied from 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
Tags copied from 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
Tags copied from 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
Tags copied from 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
Tags copied from 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.

getVacmViewSpinLock

public java.lang.Integer getVacmViewSpinLock()
                                      throws AgentException
Handles the SNMP Get Request for vacmViewSpinLock.
Returns:
The VacmView SpinLock Value.
Throws:
AgentException - This wraps all the Exceptions thrown by the Agent while processing this event.

setVacmViewSpinLock

public void setVacmViewSpinLock(SnmpVar var)
                         throws AgentSnmpException
Handles the SNMP Set Request for vacmViewSpinLock
Parameters:
var - The SnmpVar to be set as vacmViewSpinLock.
Throws:
AgentSnmpException - This wraps all the Exceptions thrown by the Agent while processing this event.