com.adventnet.snmp.snmp2.agent
Class NotificationVarbindTableRequestHandler
java.lang.Object
|
+--com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
|
+--com.adventnet.snmp.snmp2.agent.BaseTableRequestHandler
|
+--com.adventnet.snmp.snmp2.agent.NotificationVarbindTableRequestHandler
- public class NotificationVarbindTableRequestHandler
- extends BaseTableRequestHandler
Handles all requests under
notificationVarbindTable group
|
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.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 |
NOTIFICATIONVARBINDINDEX
static final int NOTIFICATIONVARBINDINDEX
NOTIFICATIONVARBINDOID
static final int NOTIFICATIONVARBINDOID
NOTIFICATIONVARBINDTYPE
static final int NOTIFICATIONVARBINDTYPE
NOTIFICATIONCOUNTER32VALUE
static final int NOTIFICATIONCOUNTER32VALUE
NOTIFICATIONUNSIGNED32VALUE
static final int NOTIFICATIONUNSIGNED32VALUE
NOTIFICATIONTIMETICKSVALUE
static final int NOTIFICATIONTIMETICKSVALUE
NOTIFICATIONINTEGER32VALUE
static final int NOTIFICATIONINTEGER32VALUE
NOTIFICATIONOCTETSTRINGVALUE
static final int NOTIFICATIONOCTETSTRINGVALUE
NOTIFICATIONIPADDRESSVALUE
static final int NOTIFICATIONIPADDRESSVALUE
NOTIFICATIONOIDVALUE
static final int NOTIFICATIONOIDVALUE
NOTIFICATIONCOUNTER64VALUE
static final int NOTIFICATIONCOUNTER64VALUE
atomicTable
java.util.Hashtable atomicTable
NotificationVarbindTableRequestHandler
public NotificationVarbindTableRequestHandler()
- Default Noarg constructor.
NotificationVarbindTableRequestHandler
public NotificationVarbindTableRequestHandler(SnmpAgent agentRef)
- Constructor with the Agent reference.
- Parameters:
agentRef - the SnmpAgent reference.
getNotificationVarbindTableOidRep
public static int[] getNotificationVarbindTableOidRep()
- Method to get the NotificationVarBindTable OID as a int[] representation
- Returns:
- int[] OID representation - {1,3,6,1,4,1,2162,10,3,1,3,2,1}
getOidRep
public int[] getOidRep()
- Getter for the OID representation.
- Overrides:
- getOidRep in class SimpleRequestHandler
- Returns:
- int[] OID representation - {1,3,6,1,4,1,2162,10,3,1,3,2,1}
getSubidList
protected int[] getSubidList()
- Getter for the SubId list in this Table.
- Overrides:
- getSubidList in class SimpleRequestHandler
- Returns:
- the int[] having the SubIDs - {1,2,3,4,5,6,7,8,9,10,11}
processGetRequest
protected void processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
- Method handling the GetRequests made on this Table.
- 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.
processGetRequest
protected void processGetRequest(SnmpVarBind varb,
int req,
VarBindRequestEvent pe,
NotificationVarbindEntry entry)
throws AgentSnmpException
- Method handling the GetRequests made on this Table.
- Parameters:
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.- 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 Table.
- 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 Table.
- 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.
setTrapVarBindDetails
public void setTrapVarBindDetails(SnmpPDU trapPDU,
int reqSize)
- Method to set the Traps VarBind Details to this NotificationVarBindTable.
This method will be internally called to populate this Table.
API users may not need this method.
- Parameters:
trapPDU - The Trap SnmpPDU that is sent from the Agent.reqSize - The number of rows required in the notification VarBind Table..
getNotificationVarbindEntryInstance
public NotificationVarbindEntry getNotificationVarbindEntryInstance()
- API users can override this method to have their own Interface.
- Returns:
- The NotificationVarbindEntry Instance Value.
checkExternalReqID
public boolean checkExternalReqID(java.lang.Integer value)
- Method to Handle the External Index Column reqId in this Table.
API Users may not need this method.
- Parameters:
value - the reqID value to be checked.- Returns:
- boolean true if external Index exists else a false.