com.adventnet.snmp.snmp2.agent
Class SnmpEngineRequestHandler
java.lang.Object
|
+--com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
|
+--com.adventnet.snmp.snmp2.agent.SnmpEngineRequestHandler
- public class SnmpEngineRequestHandler
- extends SimpleRequestHandler
Handles all requests under
snmpEngine group
| 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 |
SNMPENGINEID
static final int SNMPENGINEID
SNMPENGINEBOOTS
static final int SNMPENGINEBOOTS
SNMPENGINETIME
static final int SNMPENGINETIME
SNMPENGINEMAXMESSAGESIZE
static final int SNMPENGINEMAXMESSAGESIZE
agentName
public SnmpAgent agentName
- The Agent Reference.
atomicTable
java.util.Hashtable atomicTable
instrument
SnmpEngineInstrument instrument
SnmpEngineRequestHandler
public SnmpEngineRequestHandler(SnmpAgent agentRef)
- Constructor with the SnmpAgent Reference.
- Parameters:
agentRef - the SnmpAgent Reference.
getSnmpEngineOidRep
public static int[] getSnmpEngineOidRep()
- Method to get the SnmpEngineGroup OID as a int[] representation
- Returns:
- int[] OID representation - {1,3,6,1,6,3,10,2,1}
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
- 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.