|
|||||||||
| 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.VaclTableRequestHandler
public class VaclTableRequestHandler
Handles all requests under vaclTable group
| Field Summary | |
|---|---|
(package private) static int |
COLUMNCOUNT
|
(package private) static int |
MIBVIEWS
|
(package private) static int |
VIEWSTATUS
|
| 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, writeEachTime |
| Constructor Summary | |
|---|---|
VaclTableRequestHandler(SnmpAgent agentRef,
boolean persistence)
Deprecated. persistence has been moved to VaclTable. Primary construtor with Agent Reference and persistence flag. |
|
VaclTableRequestHandler(SnmpAgent agentRef,
java.lang.String dirStr,
java.lang.String fileName,
boolean fToVPersistence)
Deprecated. persistence has been moved to VaclTable. Primary construtor with Agent Reference and directory & fileName of persistence to the FileSystem. |
|
VaclTableRequestHandler(SnmpAgent agentRef,
VaclTable table)
The primary constructor to VaclTableRequestHandler This constructor gets the agent reference to which this table should associate with and the VaclTable which needs remote configuration. |
|
| Method Summary | |
|---|---|
(package private) boolean |
checkForRowStatus(VaclEntry entry)
|
static VaclEntry |
createVaclEntry(java.lang.String community,
java.lang.String[] mibViews)
To Create VaclEntry for the VaclTable with the corresponding values and RowStatus value as Active(1). |
static VaclEntry |
createVaclEntry(java.lang.String community,
java.lang.String[] mibViews,
java.lang.Integer status)
To Create VaclEntry for the VaclTable with the corresponding values. |
int[] |
getOidRep()
Getter for the OID representation of the VaclTable. |
java.lang.String |
getRegisteredOid()
Getter of the registered TableEntry OID. |
protected int[] |
getSubidList()
Getter of the sub id List of the VaclTable. |
int[] |
getVaclTableOidRep()
Getter for the OID representation of the VaclTable. |
boolean |
isFToVPersistence()
Deprecated. persistence has been moved to VaclTable. Gettter for fToV Persistence flag. |
boolean |
isPersistence()
Deprecated. persistence has been moved to VaclTable. Getter of the persistence flag. |
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,
VaclEntry entry)
|
protected void |
processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Process the Set Request message which is received from PduRequestHandler. |
void |
setFToVPersistence(boolean fToVPersistence)
Deprecated. - use the method in the VaclTable. Setter of File To Vector persistence flag. |
void |
setPersistence(boolean persistence)
Deprecated. use the method in the VaclTable. Setter for the persistence flag. |
void |
setRegisteredOid(java.lang.String oid)
Setter for the TableEntry OID representation for allowing users to have their own VaclTable. |
| 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 MIBVIEWS
static final int VIEWSTATUS
static final int COLUMNCOUNT
| Constructor Detail |
|---|
public VaclTableRequestHandler(SnmpAgent agentRef,
boolean persistence)
agentRef - The Agent Reference.persistence - The persistence flag.
public VaclTableRequestHandler(SnmpAgent agentRef,
java.lang.String dirStr,
java.lang.String fileName,
boolean fToVPersistence)
agentRef - The Agent Reference.dirStr - The directory Name of the persistence.fileName - The file Name of the persistence.fToVPersistence - boolean to specify the storage format.
public VaclTableRequestHandler(SnmpAgent agentRef,
VaclTable table)
agentRef - The Snmp Agent Reference.table - The VaclTable instance associated with the Agent.| Method Detail |
|---|
public int[] getVaclTableOidRep()
public void setRegisteredOid(java.lang.String oid)
oid - The string representation of Table's Entry OID
similar to ".1.3.6.1.4.1.2162.1.2.3.2.1".public java.lang.String getRegisteredOid()
public int[] getOidRep()
getOidRep in class SimpleRequestHandlerprotected int[] getSubidList()
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,
VaclEntry entry)
throws AgentSnmpException
AgentSnmpException
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(VaclEntry entry)
throws AgentException
AgentExceptionpublic void setPersistence(boolean persistence)
persistence - The persistence of ViewAccessControlTable.txt to the fileSystem.public boolean isPersistence()
public static VaclEntry createVaclEntry(java.lang.String community,
java.lang.String[] mibViews)
community - The community for which the Entry is created.mibViews - The mibViews string array containing the string
representations of the OIDs for View Access.
public static VaclEntry createVaclEntry(java.lang.String community,
java.lang.String[] mibViews,
java.lang.Integer status)
community - The community for which the Entry is created.mibViews - The mibViews string array containing the string
representations of the OIDs for View Access.status - the RowStatus value (1 - 5)with which this Row has to be created
public void setFToVPersistence(boolean fToVPersistence)
fToVPersistence - the FToV persistence flag.isFToVPersistence()public boolean isFToVPersistence()
setFToVPersistence(boolean fToVPersistence)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||