|
|||||||||
| 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.vacm.VacmContextTableRequestHandler
public class VacmContextTableRequestHandler
Handles all requests under vacmContextTable group
| Field Summary | |
|---|---|
protected SnmpAgent |
agentName
The Reference for the Snmp Agent Instance. |
(package private) java.lang.String |
fileDir
|
(package private) java.lang.String |
format
|
(package private) java.util.Vector |
vacmContextEntryVector
|
(package private) static int |
VACMCONTEXTNAME
|
(package private) VacmContextTable |
vacmContextTable
|
| Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
|---|
instrumentHandler, listener, tableListener |
| Constructor Summary | |
|---|---|
VacmContextTableRequestHandler(SnmpAgent agentRef)
Constructor for the VacmContextTableRequestHandler with agent Reference. |
|
VacmContextTableRequestHandler(SnmpAgent agentRef,
java.lang.String dirStr,
java.lang.String fileName,
java.lang.String format)
Constructor for the VacmContextTableRequestHandler with agent Reference. |
|
| Method Summary | |
|---|---|
boolean |
createAndAddVacmContextEntry(java.lang.String contextName)
The Method to Create and Add a new VacmContextEntry to VacmViewTreeFamilyTable. |
static VacmContextEntry |
createVacmContextEntry(java.lang.String contextName)
The Static Method to create a VacmContextEntry. |
int[] |
getOidRep()
Retrives the integer representation of OID |
protected int[] |
getSubidList()
Gets the subid list of the oid. |
java.util.Vector |
getTableVector()
The method to return the Vector of VacmContextEntries present in the VacmContextTable. |
static int[] |
getVacmContextTableOidRep()
Getter for the Vacm Context Table Oid Representation. |
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,
VacmContextEntry entry)
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 vacmConVec)
The method to set the Vector of VacmContextEntries. |
| 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 VACMCONTEXTNAME
protected SnmpAgent agentName
VacmContextTable vacmContextTable
java.util.Vector vacmContextEntryVector
java.lang.String format
java.lang.String fileDir
| Constructor Detail |
|---|
public VacmContextTableRequestHandler(SnmpAgent agentRef)
agentRef - The Reference for the Snmp Agent.
public VacmContextTableRequestHandler(SnmpAgent agentRef,
java.lang.String dirStr,
java.lang.String fileName,
java.lang.String format)
agentRef - The Agent Reference.dirStr - the directory location String of the File.fileName - The fileName String.format - The file format("xml").| Method Detail |
|---|
public static int[] getVacmContextTableOidRep()
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,
VacmContextEntry entry)
throws AgentSnmpException
varb - The received VarBind.req - The request given.pe - The Varbind Request Event created after thid Event.entry - The Vacm Context Entry for the Request.
This - wraps all the Exceptions thrown by the Agent while Processing this event.
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.public void setTableVector(java.util.Vector vacmConVec)
The - Vector of VacmContextEntries.public java.util.Vector getTableVector()
public void serialize(java.io.ObjectOutputStream outMain)
outMain - The objet Output stream to be serialized.public boolean createAndAddVacmContextEntry(java.lang.String contextName)
contextName - The contextName with which the entry
is to be created.
createVacmContextEntry.public static VacmContextEntry createVacmContextEntry(java.lang.String contextName)
contextName - The contextName with which the entry
is to be created.
createAndAddVacmContextEntry.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||