com.adventnet.snmp.snmp2.agent
Class NotificationLogTableRequestHandler
java.lang.Object
|
+--com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
|
+--com.adventnet.snmp.snmp2.agent.BaseTableRequestHandler
|
+--com.adventnet.snmp.snmp2.agent.NotificationLogTableRequestHandler
- public class NotificationLogTableRequestHandler
- extends BaseTableRequestHandler
Handles all requests under
notificationLogTable group
|
Method Summary |
NotificationLogEntry |
getNotificationLogEntryInstance()
API users can override this method to have their own
NotificationLogEntryInterface. |
static int[] |
getNotificationLogTableOidRep()
Method to get the NotificationLogTable 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,
NotificationLogEntry 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 |
setTrapDetails(SnmpPDU trapPDU,
int reqSize)
The method will be called internally by the Agent to set the TrapDetails
whenever a Trap is sent by the Agent linked with this Handler. |
| 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 |
REQID
static final int REQID
NOTIFICATIONVERSION
static final int NOTIFICATIONVERSION
NOTIFICATIONUPTIME
static final int NOTIFICATIONUPTIME
NOTIFICATIONOID
static final int NOTIFICATIONOID
NOTIFICATIONVARBINDSCOUNT
static final int NOTIFICATIONVARBINDSCOUNT
atomicTable
java.util.Hashtable atomicTable
NotificationLogTableRequestHandler
public NotificationLogTableRequestHandler()
- Default Noarg constructor.
NotificationLogTableRequestHandler
public NotificationLogTableRequestHandler(SnmpAgent agentRef)
- Constructor with the Agent reference.
- Parameters:
agentRef - the SnmpAgent reference.
getNotificationLogTableOidRep
public static int[] getNotificationLogTableOidRep()
- Method to get the NotificationLogTable OID as a int[] representation
- Returns:
- int[] OID representation - 1,3,6,1,4,1,2162,10,3,1,3,1,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,1,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}
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,
NotificationLogEntry 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 NotificationLogEntry 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.
setTrapDetails
public void setTrapDetails(SnmpPDU trapPDU,
int reqSize)
- The method will be called internally by the Agent to set the TrapDetails
whenever a Trap is sent by the Agent linked with this Handler.
This method will be internally called to populate this Table.
API users may not need this method.
- Parameters:
trapPDU - the SNMP Trap PDU.reqSize - the number of Trap Entries that are to be stored.
getNotificationLogEntryInstance
public NotificationLogEntry getNotificationLogEntryInstance()
- API users can override this method to have their own
NotificationLogEntryInterface.
This method will be called for all AclEntry instance creation.
- Returns:
- The Notification Log Entry Instance Value.