|
|||||||||
| 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.NotificationLogTableRequestHandler
public class NotificationLogTableRequestHandler
Handles all requests under notificationLogTable group
| Field Summary | |
|---|---|
(package private) java.util.Hashtable |
atomicTable
|
(package private) static int |
NOTIFICATIONOID
|
(package private) static int |
NOTIFICATIONUPTIME
|
(package private) static int |
NOTIFICATIONVARBINDSCOUNT
|
(package private) static int |
NOTIFICATIONVERSION
|
(package private) static int |
REQID
|
| 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 | |
|---|---|
NotificationLogTableRequestHandler()
Default Noarg constructor. |
|
NotificationLogTableRequestHandler(SnmpAgent agentRef)
Constructor with the Agent reference. |
|
| 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.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 REQID
static final int NOTIFICATIONVERSION
static final int NOTIFICATIONUPTIME
static final int NOTIFICATIONOID
static final int NOTIFICATIONVARBINDSCOUNT
java.util.Hashtable atomicTable
| Constructor Detail |
|---|
public NotificationLogTableRequestHandler()
public NotificationLogTableRequestHandler(SnmpAgent agentRef)
agentRef - the SnmpAgent reference.| Method Detail |
|---|
public static int[] getNotificationLogTableOidRep()
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,
NotificationLogEntry 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 NotificationLogEntry 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 setTrapDetails(SnmpPDU trapPDU,
int reqSize)
trapPDU - the SNMP Trap PDU.reqSize - the number of Trap Entries that are to be stored.public NotificationLogEntry getNotificationLogEntryInstance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||