|
|||||||||
| 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.BaseTableRequestHandler
com.adventnet.snmp.snmp2.agent.NotificationVarbindTableRequestHandler
public class NotificationVarbindTableRequestHandler
Handles all requests under notificationVarbindTable group
| Field Summary | |
|---|---|
(package private) java.util.Hashtable |
atomicTable
|
(package private) static int |
NOTIFICATIONCOUNTER32VALUE
|
(package private) static int |
NOTIFICATIONCOUNTER64VALUE
|
(package private) static int |
NOTIFICATIONINTEGER32VALUE
|
(package private) static int |
NOTIFICATIONIPADDRESSVALUE
|
(package private) static int |
NOTIFICATIONOCTETSTRINGVALUE
|
(package private) static int |
NOTIFICATIONOIDVALUE
|
(package private) static int |
NOTIFICATIONTIMETICKSVALUE
|
(package private) static int |
NOTIFICATIONUNSIGNED32VALUE
|
(package private) static int |
NOTIFICATIONVARBINDINDEX
|
(package private) static int |
NOTIFICATIONVARBINDOID
|
(package private) static int |
NOTIFICATIONVARBINDTYPE
|
| Fields inherited from class com.adventnet.snmp.snmp2.agent.BaseTableRequestHandler |
|---|
agentName, listenerList, tModelComplete |
| Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
|---|
instrumentHandler, listener, tableListener, writeEachTime |
| Constructor Summary | |
|---|---|
NotificationVarbindTableRequestHandler()
Default Noarg constructor. |
|
NotificationVarbindTableRequestHandler(SnmpAgent agentRef)
Constructor with the Agent reference. |
|
| Method Summary | |
|---|---|
boolean |
checkExternalReqID(java.lang.Integer value)
Method to Handle the External Index Column reqId in this Table. |
NotificationVarbindEntry |
getNotificationVarbindEntryInstance()
API users can override this method to have their own Interface. |
static int[] |
getNotificationVarbindTableOidRep()
Method to get the NotificationVarBindTable OID as a int[] representation |
int[] |
getOidRep()
Getter for the OID representation. |
protected int[] |
getSubidList()
Getter for the SubId list in this Table. |
protected void |
processGetNextRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Method handling the GetNextRequests made on this Table. |
protected void |
processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Method handling the GetRequests made on this Table. |
protected void |
processGetRequest(SnmpVarBind varb,
int req,
VarBindRequestEvent pe,
NotificationVarbindEntry entry)
Method handling the GetRequests made on this Table. |
protected void |
processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Method handling the SetRequests made on this Table. |
void |
setTrapVarBindDetails(SnmpPDU trapPDU,
int reqSize)
Method to set the Traps VarBind Details to this NotificationVarBindTable. |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.BaseTableRequestHandler |
|---|
addChangeListener, createChangeEvent, fireChangeEvent, getTableVector, removeChangeListener, setTableVector |
| 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 NOTIFICATIONVARBINDINDEX
static final int NOTIFICATIONVARBINDOID
static final int NOTIFICATIONVARBINDTYPE
static final int NOTIFICATIONCOUNTER32VALUE
static final int NOTIFICATIONUNSIGNED32VALUE
static final int NOTIFICATIONTIMETICKSVALUE
static final int NOTIFICATIONINTEGER32VALUE
static final int NOTIFICATIONOCTETSTRINGVALUE
static final int NOTIFICATIONIPADDRESSVALUE
static final int NOTIFICATIONOIDVALUE
static final int NOTIFICATIONCOUNTER64VALUE
java.util.Hashtable atomicTable
| Constructor Detail |
|---|
public NotificationVarbindTableRequestHandler()
public NotificationVarbindTableRequestHandler(SnmpAgent agentRef)
agentRef - the SnmpAgent reference.| Method Detail |
|---|
public static int[] getNotificationVarbindTableOidRep()
public int[] getOidRep()
getOidRep in class SimpleRequestHandlerprotected int[] getSubidList()
getSubidList in class SimpleRequestHandler
protected void processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
processGetRequest in class SimpleRequestHandlervarb - the SnmpVarBind of the Request.node - the AgentNode associated with the Request.pe - The VarBindRequestEvent created for this request.
AgentSnmpException - This wraps all the Exceptions thrown while
processing this event.
protected void processGetRequest(SnmpVarBind varb,
int req,
VarBindRequestEvent pe,
NotificationVarbindEntry entry)
throws AgentSnmpException
varb - the SnmpVarBind of the Request.req - the int SubId for which the request is made.pe - The VarBindRequestEvent created for this request.entry - the NotificationVarBindEntry for the request.
AgentSnmpException - This wraps all the Exceptions thrown while
processing this event.
protected void processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
processSetRequest in class SimpleRequestHandlervarb - the SnmpVarBind of the Request.node - the AgentNode associated with the Request.pe - The VarBindRequestEvent created for this request.
AgentSnmpException - This wraps all the Exceptions thrown while
processing this event.
protected void processGetNextRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
processGetNextRequest in class SimpleRequestHandlervarb - the SnmpVarBind of the Request.node - the AgentNode associated with the request.pe - The VarBindRequestEvent created for this request.
AgentSnmpException - This wraps all the Exceptions thrown while
processing this event.
public void setTrapVarBindDetails(SnmpPDU trapPDU,
int reqSize)
trapPDU - The Trap SnmpPDU that is sent from the Agent.reqSize - The number of rows required in the notification VarBind Table..public NotificationVarbindEntry getNotificationVarbindEntryInstance()
public boolean checkExternalReqID(java.lang.Integer value)
value - the reqID value to be checked.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||