|
|||||||||
| 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.SnmpTargetAddrExtTableRequestHandler
public class SnmpTargetAddrExtTableRequestHandler
Handles all requests under snmpTargetAddrExtTable group
| Field Summary | |
|---|---|
(package private) SnmpAgent |
agentName
|
(package private) SnmpAPI |
api
|
(package private) java.util.Hashtable |
atomicTable
|
(package private) java.lang.String |
fileDir
|
(package private) java.lang.String |
format
|
(package private) java.util.Vector |
snmpTargetAddrExtEntryVector
|
(package private) static int |
SNMPTARGETADDRMMS
|
(package private) static int |
SNMPTARGETADDRTMASK
|
(package private) SnmpTargetAddrExtTable |
targetAddrExtTable
|
(package private) SnmpTargetAddrTable |
targetAddrTable
|
(package private) SnmpTargetAddrExtTableXMLToVector |
xmlToVector
|
| Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
|---|
instrumentHandler, listener, tableListener, writeEachTime |
| Constructor Summary | |
|---|---|
SnmpTargetAddrExtTableRequestHandler(SnmpAgent agentRef)
Default constructor that takes the SnmpAgent as the argument. |
|
SnmpTargetAddrExtTableRequestHandler(SnmpAgent agentRef,
java.lang.String dirStr,
java.lang.String fileName,
java.lang.String format)
Secondary constructor with Persistence support. |
|
| Method Summary | |
|---|---|
boolean |
createAndAddSnmpTargetAddrExtEntry(java.lang.String targetAddrName,
java.lang.Integer targetAddrMMS,
java.lang.String targetAddrTMask)
The method to create and Add a new Entry to the TargetAddrExtTable. |
SnmpTargetAddrExtEntry |
createSnmpTargetAddrExtEntry(java.lang.String targetAddrName,
java.lang.Integer targetAddrMMS,
java.lang.String targetAddrTMask)
The method to create a new SnmpTargetAddrEntry. |
int[] |
getOidRep()
Retrives the integer representation of OID |
static int[] |
getSnmpTargetAddrExtTableOidRep()
Gets the SnmpTargetAddrExtTable entry OID - int[] of {1,3,6,1,6,3,18,1,2,1} |
protected int[] |
getSubidList()
Gets the subid list of the oid. |
java.util.Vector |
getTableVector()
The method to get the Vector of SnmpTargetAddrEntries present in the SnmpTargetAddrTable. |
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,
SnmpTargetAddrExtEntry entry,
byte[] targetAddrName)
|
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)
For serializing object |
void |
setTableVector(java.util.Vector targetAddrExtVec)
The method to set the Vector of SnmpTargetAddrExtEntries. |
| 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 SNMPTARGETADDRTMASK
static final int SNMPTARGETADDRMMS
SnmpAgent agentName
java.util.Hashtable atomicTable
SnmpAPI api
SnmpTargetAddrExtTable targetAddrExtTable
SnmpTargetAddrTable targetAddrTable
java.util.Vector snmpTargetAddrExtEntryVector
SnmpTargetAddrExtTableXMLToVector xmlToVector
java.lang.String format
java.lang.String fileDir
| Constructor Detail |
|---|
public SnmpTargetAddrExtTableRequestHandler(SnmpAgent agentRef)
agentRef - instance of SnmpAgent
public SnmpTargetAddrExtTableRequestHandler(SnmpAgent agentRef,
java.lang.String dirStr,
java.lang.String fileName,
java.lang.String format)
agentRef - instance of SnmpAgent.dirStr - the directory location String of the File.fileName - the fileName String.format - the Format of Storage.("xml")| Method Detail |
|---|
public static int[] getSnmpTargetAddrExtTableOidRep()
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,
SnmpTargetAddrExtEntry entry,
byte[] targetAddrName)
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.
public boolean createAndAddSnmpTargetAddrExtEntry(java.lang.String targetAddrName,
java.lang.Integer targetAddrMMS,
java.lang.String targetAddrTMask)
targetAddrName - The targetAddrName with which the entry
is to be created.targetAddrMMS - The targetAddrMMS with which the entry
is to be created.targetAddrTMask - The targetAddrTMask with which the entry
is to be created.
createSnmpTargetAddrExtEntry.
public SnmpTargetAddrExtEntry createSnmpTargetAddrExtEntry(java.lang.String targetAddrName,
java.lang.Integer targetAddrMMS,
java.lang.String targetAddrTMask)
targetAddrName - The targetAddrName with which the entry
is to be created.targetAddrMMS - The targetAddrMMS with which the entry
is to be created.targetAddrTMask - The targetAddrTMask with which the entry
is to be created.
createAndAddSnmpTargetAddrExtEntry.public void setTableVector(java.util.Vector targetAddrExtVec)
The - Vector of SnmpTargetAddrExtEntries.public java.util.Vector getTableVector()
public void serialize(java.io.ObjectOutputStream outMain)
outMain - the ObjectOutputStream for serializing.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||