|
|||||||||
| 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.notification.SnmpNotifyFilterTableRequestHandler
public class SnmpNotifyFilterTableRequestHandler
Handles all requests under snmpNotifyFilterTable group.
| Field Summary | |
|---|---|
(package private) SnmpAgent |
agentName
|
(package private) SnmpAPI |
api
|
(package private) static int |
COLUMNCOUNT
|
(package private) java.lang.String |
fileDir
|
(package private) java.lang.String |
format
|
(package private) SnmpNotifyFilterTable |
notifyFilterTable
|
(package private) SnmpNotifyTable |
notifyTable
|
(package private) java.util.Vector |
snmpNotifyFilterEntryVector
|
(package private) static int |
SNMPNOTIFYFILTERMASK
|
(package private) static int |
SNMPNOTIFYFILTERROWSTATUS
|
(package private) static int |
SNMPNOTIFYFILTERSTORAGETYPE
|
(package private) static int |
SNMPNOTIFYFILTERSUBTREE
|
(package private) static int |
SNMPNOTIFYFILTERTYPE
|
(package private) SnmpNotifyFilterTableXMLToVector |
xmlToVector
|
| Fields inherited from class com.adventnet.snmp.snmp2.agent.BaseTableRequestHandler |
|---|
listenerList, tModelComplete |
| Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
|---|
instrumentHandler, listener, tableListener |
| Constructor Summary | |
|---|---|
SnmpNotifyFilterTableRequestHandler(SnmpAgent agentRef)
The Primary Constructor for the SnmpNotifyFilterTableRequestHandler with * Agent Reference. |
|
SnmpNotifyFilterTableRequestHandler(SnmpAgent agentRef,
java.lang.String dirStr,
java.lang.String fileName,
java.lang.String format)
The Secondary Constructor with the agent Name and Persistence Support. |
|
| Method Summary | |
|---|---|
(package private) boolean |
checkForRowStatus(SnmpNotifyFilterEntry entry)
|
boolean |
createAndAddSnmpNotifyFilterEntry(java.lang.String profileName,
java.lang.String filterSubtree,
java.lang.String filterMask,
java.lang.Integer filterType,
java.lang.Integer storageType,
java.lang.Integer rowStatus)
The Method to Create and Add a new SnmpNotifyFilterEntry to SnmpNotifyTable. |
static SnmpNotifyFilterEntry |
createSnmpNotifyFilterEntry(java.lang.String profileName,
java.lang.String filterSubtree,
java.lang.String filterMask,
java.lang.Integer filterType,
java.lang.Integer storageType,
java.lang.Integer rowStatus)
The Static Method to create a SnmpNotifyFilterEntry. |
int[] |
getOidRep()
Retrives the integer representation of OID |
static int[] |
getSnmpNotifyFilterTableOidRep()
Getter for the Snmp Notify Filter Table OID representation. |
protected int[] |
getSubidList()
Gets the subid list of the oid. |
java.util.Vector |
getTableVector()
The method to return the Vector of SnmpNotifyFilterEntries present in the SnmpNotifyFilterTable. |
protected void |
processGetNextRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Process the GetNext Request message which is received from PduRequestHandler. |
protected void |
processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Process the Get Request message which is received from PduRequestHandler. |
protected void |
processGetRequest(SnmpVarBind varb,
int req,
VarBindRequestEvent pe,
SnmpNotifyFilterEntry entry,
byte[] profileName)
Process the Get Request message for the given params. |
protected void |
processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Process the Set Request message which is received from PduRequestHandler. |
void |
serialize(java.io.ObjectOutputStream outMain)
This method Serializes the Output Stream. |
void |
setTableVector(java.util.Vector notifyFilterVec)
The method to set the Vector of SnmpNotifyFilterEntries. |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.BaseTableRequestHandler |
|---|
addChangeListener, createChangeEvent, fireChangeEvent, removeChangeListener |
| 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 SNMPNOTIFYFILTERSUBTREE
static final int SNMPNOTIFYFILTERMASK
static final int SNMPNOTIFYFILTERTYPE
static final int SNMPNOTIFYFILTERSTORAGETYPE
static final int SNMPNOTIFYFILTERROWSTATUS
static final int COLUMNCOUNT
SnmpAgent agentName
SnmpAPI api
SnmpNotifyFilterTable notifyFilterTable
SnmpNotifyTable notifyTable
java.util.Vector snmpNotifyFilterEntryVector
SnmpNotifyFilterTableXMLToVector xmlToVector
java.lang.String format
java.lang.String fileDir
| Constructor Detail |
|---|
public SnmpNotifyFilterTableRequestHandler(SnmpAgent agentRef)
agentRef - The Agent Reference.
public SnmpNotifyFilterTableRequestHandler(SnmpAgent agentRef,
java.lang.String dirStr,
java.lang.String fileName,
java.lang.String format)
agentRef - The Agent Name Reference.dirStr - the directory location String of the File.fileName - The fileName String.format - The file format("xml").| Method Detail |
|---|
public static int[] getSnmpNotifyFilterTableOidRep()
public int[] getOidRep()
SimpleRequestHandler
getOidRep in class SimpleRequestHandlerprotected int[] getSubidList()
SimpleRequestHandler
getSubidList in class SimpleRequestHandler
protected void processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
SimpleRequestHandler
processGetRequest in class SimpleRequestHandlervarb - The received varbind .node - The node for which Get Request is to be done.pe - The VarBind Request Event created by this Get request.
AgentSnmpException - This wraps all the Exceptions thrown
while Processing the Event.
protected void processGetRequest(SnmpVarBind varb,
int req,
VarBindRequestEvent pe,
SnmpNotifyFilterEntry entry,
byte[] profileName)
throws AgentSnmpException
varb - The received VarBind.req - The request given.pe - The Varbind Request Event created after thid Event.entry - The Snmp Notify Filter Entry for the Request.profileName - The Profile name of the Notify Filter Table.
AgentSnmpException - This wraps all the Exceptions thrown by the
Agent while Processing this event.
protected void processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
SimpleRequestHandler
processSetRequest in class SimpleRequestHandlervarb - The received varbind.node - The node for which Get Next Request is to be done.pe - The VarBind Request Event created by this GetNext request.
AgentSnmpException - This wraps all the Exceptions thrown
while Processing the Event.
protected void processGetNextRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
SimpleRequestHandler
processGetNextRequest in class SimpleRequestHandlervarb - The received varbind.node - The node for which Get Next Request is to be done.pe - The VarBind Request Event created by this GetNext request.
AgentSnmpException - This wraps all the Exceptions thrown
while Processing the Event.
boolean checkForRowStatus(SnmpNotifyFilterEntry entry)
throws AgentException
AgentException
public boolean createAndAddSnmpNotifyFilterEntry(java.lang.String profileName,
java.lang.String filterSubtree,
java.lang.String filterMask,
java.lang.Integer filterType,
java.lang.Integer storageType,
java.lang.Integer rowStatus)
profileName - The profileName with which the entry
is to be created.filterSubtree - The filterSubtree with which the entry
is to be created.filterMask - The filterMask with which the entry
is to be created.filterType - The filterType with which the entry
is to be created.storageType - The storageType for the Entry.rowStatus - the RowStatus Integer for the Entry.
createSnmpNotifyFilterEntry.
public static SnmpNotifyFilterEntry createSnmpNotifyFilterEntry(java.lang.String profileName,
java.lang.String filterSubtree,
java.lang.String filterMask,
java.lang.Integer filterType,
java.lang.Integer storageType,
java.lang.Integer rowStatus)
profileName - The profileName with which the entry
is to be created.filterSubtree - The filterSubtree with which the entry
is to be created.filterMask - The filterMask with which the entry
is to be created.filterType - The filterType with which the entry
is to be created.storageType - The storageType for the Entry.rowStatus - the RowStatus Integer for the Entry.
createAndAddSnmpNotifyFilterEntry.public void setTableVector(java.util.Vector notifyFilterVec)
setTableVector in class BaseTableRequestHandlerThe - Vector of SnmpNotifyFilterEntries.public java.util.Vector getTableVector()
getTableVector in class BaseTableRequestHandlerpublic void serialize(java.io.ObjectOutputStream outMain)
outMain - The objet Output stream to be serialized.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||