com.adventnet.snmp.snmp2.agent.usm
Class UsmUserRequestHandler

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

public class UsmUserRequestHandler
extends SimpleRequestHandler

Handles all requests under usmUser group.


Field Summary
protected  java.lang.Integer usmUserSpinLock
          This is the usm User SpinLock Variable.
(package private) static int USMUSERSPINLOCK
           
 
Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
instrumentHandler, listener, tableListener
 
Constructor Summary
UsmUserRequestHandler(SnmpAgent agentRef)
          Constructor for the UsmUserRequestHandler 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[] getUsmUserOidRep()
          The getter for the Usm User Oid Representation.
 java.lang.Integer getUsmUserSpinLock()
          Handles the SNMP Get Request for usmUserSpinLock.
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 setUsmUserSpinLock(SnmpVar var)
          Handles the SNMP Set Request for usmUserSpinLock
 
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

USMUSERSPINLOCK

static final int USMUSERSPINLOCK
See Also:
Constant Field Values

usmUserSpinLock

protected java.lang.Integer usmUserSpinLock
This is the usm User SpinLock Variable.

Constructor Detail

UsmUserRequestHandler

public UsmUserRequestHandler(SnmpAgent agentRef)
Constructor for the UsmUserRequestHandler with the Snmp Agent Reference.

Parameters:
agentRef - The Snmp Agent Reference.
Method Detail

getUsmUserOidRep

public static int[] getUsmUserOidRep()
The getter for the Usm User Oid Representation.

Returns:
The Usm User Oid Representation.

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.

getUsmUserSpinLock

public java.lang.Integer getUsmUserSpinLock()
                                     throws AgentSnmpException
Handles the SNMP Get Request for usmUserSpinLock.

Returns:
The Usmuserspinlock value.
Throws:
AgentSnmpException - This wraps all the Exceptions thrown by the Agent while processing the event.

setUsmUserSpinLock

public void setUsmUserSpinLock(SnmpVar var)
                        throws AgentSnmpException
Handles the SNMP Set Request for usmUserSpinLock

Parameters:
SnmpVar - The SnmpVar to be set as usmUserSpinLock.
Throws:
AgentSnmpException - This wraps all the Exceptions thrown by the Agent while processing the event.