|
|||||||||
| 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.SnmpTargetObjectsRequestHandler
public class SnmpTargetObjectsRequestHandler
Handles all requests under snmpTargetObjects group
| Field Summary | |
|---|---|
(package private) SnmpAgent |
agentName
|
(package private) SnmpAPI |
api
|
(package private) java.util.Hashtable |
atomicTable
|
protected java.lang.Integer |
snmpTargetSpinLock
The SpinLock Integer. |
(package private) static int |
SNMPTARGETSPINLOCK
|
(package private) static int |
SNMPUNAVAILABLECONTEXTS
|
(package private) static int |
SNMPUNKNOWNCONTEXTS
|
| Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
|---|
instrumentHandler, listener, tableListener, writeEachTime |
| Constructor Summary | |
|---|---|
SnmpTargetObjectsRequestHandler(SnmpAgent agentRef)
Default constructor that takes the SnmpAgent as the argument. |
|
| Method Summary | |
|---|---|
int[] |
getOidRep()
Retrives the integer representation of OID |
static int[] |
getSnmpTargetObjectsOidRep()
Gets the SnmpTargetObjects group int[] rep {1,3,6,1,6,3,12,1} |
java.lang.Integer |
getSnmpTargetSpinLock()
Getter for the Snmp Target Spin Lock value |
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. |
void |
setSnmpTargetSpinLock(SnmpVar var)
Setter for the Snmp Target Spin Lock value |
| 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 |
|---|
static final int SNMPTARGETSPINLOCK
static final int SNMPUNAVAILABLECONTEXTS
static final int SNMPUNKNOWNCONTEXTS
SnmpAgent agentName
SnmpAPI api
protected java.lang.Integer snmpTargetSpinLock
java.util.Hashtable atomicTable
| Constructor Detail |
|---|
public SnmpTargetObjectsRequestHandler(SnmpAgent agentRef)
agentRef - instance of SnmpAgent| Method Detail |
|---|
public static int[] getSnmpTargetObjectsOidRep()
public int[] getOidRep()
SimpleRequestHandler
getOidRep in class SimpleRequestHandlerprotected int[] getSubidList()
SimpleRequestHandler
getSubidList in class SimpleRequestHandler
protected void processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
SimpleRequestHandler
processGetRequest in class SimpleRequestHandlervarb - The received varbind .node - The node for which Get Request is to be done.pe - The VarBind Request Event created by this Get request.
AgentSnmpException - This wraps all the Exceptions thrown
while Processing the Event.
protected void processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
SimpleRequestHandler
processSetRequest in class SimpleRequestHandlervarb - 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.
AgentSnmpException - This wraps all the Exceptions thrown
while Processing the Event.
protected void processGetNextRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
SimpleRequestHandler
processGetNextRequest in class SimpleRequestHandlervarb - 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.
AgentSnmpException - This wraps all the Exceptions thrown
while Processing the Event.
public java.lang.Integer getSnmpTargetSpinLock()
throws AgentException
AgentException - This wraps all the exceptions thrown during
this event.
public void setSnmpTargetSpinLock(SnmpVar var)
throws AgentSnmpException,
AgentException
var - specifies the SnmpVar object for SnmpTargetSpinLock
AgentSnmpException, - AgentException This wraps all the
exceptions thrown during this event.
AgentSnmpException
AgentException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||