|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
|
+--com.adventnet.snmp.snmp2.agent.BaseTableRequestHandler
|
+--com.adventnet.snmp.snmp2.agent.SnmpTargetParamsTableRequestHandler
Handles all requests under snmpTargetParamsTable 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) java.util.Vector |
snmpTargetParamsEntryVector
|
(package private) static int |
SNMPTARGETPARAMSMPMODEL
|
(package private) static int |
SNMPTARGETPARAMSNAME
|
(package private) static int |
SNMPTARGETPARAMSROWSTATUS
|
(package private) static int |
SNMPTARGETPARAMSSECURITYLEVEL
|
(package private) static int |
SNMPTARGETPARAMSSECURITYMODEL
|
(package private) static int |
SNMPTARGETPARAMSSECURITYNAME
|
(package private) static int |
SNMPTARGETPARAMSSTORAGETYPE
|
(package private) SnmpTargetParamsTable |
targetParamsTable
|
(package private) SnmpTargetParamsTableXMLToVector |
xmlToVector
|
| 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 | |
SnmpTargetParamsTableRequestHandler(SnmpAgent agentRef)
Default Constructor with SnmpAgent Reference. |
|
SnmpTargetParamsTableRequestHandler(SnmpAgent agentRef,
java.lang.String dirStr,
java.lang.String fileName,
java.lang.String format)
Secondary constructor with Persistence support. |
|
| Method Summary | |
(package private) boolean |
checkForRowStatus(SnmpTargetParamsEntry entry)
|
boolean |
createAndAddSnmpTargetParamsEntry(java.lang.String targetParamsName,
java.lang.Integer targetParamsMPModel,
java.lang.Integer securityModel,
java.lang.String securityName,
java.lang.Integer securityLevel,
java.lang.Integer storageType,
java.lang.Integer rowStatus)
The method to create and Add a new Entry to the TargetParamsTable. |
static SnmpTargetParamsEntry |
createSnmpTargetParamsEntry(java.lang.String targetParamsName,
java.lang.Integer targetParamsMPModel,
java.lang.Integer securityModel,
java.lang.String securityName,
java.lang.Integer securityLevel,
java.lang.Integer storageType,
java.lang.Integer rowStatus)
The Static method to create a new SnmpTargetAddrEntry. |
int[] |
getOidRep()
Retrives the integer representation of OID |
static int[] |
getSnmpTargetParamsTableOidRep()
Gets the SnmpTargetParamsTable entry OID - int[] of {1,3,6,1,6,3,12,1,3,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,
SnmpTargetParamsEntry entry,
byte[] paramsName)
|
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 this Tables Entries |
void |
setTableVector(java.util.Vector targetParamsVec)
The method to set the Vector of SnmpTargetAddrEntries. |
| 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,
getObjectHash,
getObjectTypeHash,
getRequest,
getTableListener,
isWriteEachTime,
processGetNextRequest,
processGetRequest,
processSetRequest,
removeRegistrationListener,
removeUpdateListener,
setRequest,
setWriteEachTime,
writeIntoFile |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
static final int SNMPTARGETPARAMSNAME
static final int SNMPTARGETPARAMSMPMODEL
static final int SNMPTARGETPARAMSSECURITYMODEL
static final int SNMPTARGETPARAMSSECURITYNAME
static final int SNMPTARGETPARAMSSECURITYLEVEL
static final int SNMPTARGETPARAMSSTORAGETYPE
static final int SNMPTARGETPARAMSROWSTATUS
static final int COLUMNCOUNT
SnmpAgent agentName
SnmpAPI api
SnmpTargetParamsTable targetParamsTable
java.util.Vector snmpTargetParamsEntryVector
SnmpTargetParamsTableXMLToVector xmlToVector
java.lang.String format
java.lang.String fileDir
| Constructor Detail |
public SnmpTargetParamsTableRequestHandler(SnmpAgent agentRef)
agentRef - instance of SnmpAgent
public SnmpTargetParamsTableRequestHandler(SnmpAgent agentRef,
java.lang.String dirStr,
java.lang.String fileName,
java.lang.String format)
agentRef - instance of the SnmpAgent.dirStr - the directory location String of the File.fileName - the fileName String.format - the Format of Storage.("xml")| Method Detail |
public static int[] getSnmpTargetParamsTableOidRep()
public int[] getOidRep()
protected int[] getSubidList()
protected void processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
varb - The received varbind .node - The node for which Get Request is to be done.pe - The VarBind Request Event created by this Get request.
protected void processGetRequest(SnmpVarBind varb,
int req,
VarBindRequestEvent pe,
SnmpTargetParamsEntry entry,
byte[] paramsName)
throws AgentSnmpException
protected void processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
varb - 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.
protected void processGetNextRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
varb - 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.
boolean checkForRowStatus(SnmpTargetParamsEntry entry)
throws AgentException
public boolean createAndAddSnmpTargetParamsEntry(java.lang.String targetParamsName,
java.lang.Integer targetParamsMPModel,
java.lang.Integer securityModel,
java.lang.String securityName,
java.lang.Integer securityLevel,
java.lang.Integer storageType,
java.lang.Integer rowStatus)
targetParamsName - The targetParamsName with which the entry
is to be created.targetParamsMPModel - The targetParamsMPModel with which the entry
is to be created.securityModel - The securityModel with which the entry
is to be created.securityName - The securityName with which the entry
is to be created.securityLevel - The securityLevel with which the entry
is to be created.storageType - The storageType for the Entry.rowStatus - The RowStatus Integer for the Entry.createSnmpTargetParamsEntry.
public static SnmpTargetParamsEntry createSnmpTargetParamsEntry(java.lang.String targetParamsName,
java.lang.Integer targetParamsMPModel,
java.lang.Integer securityModel,
java.lang.String securityName,
java.lang.Integer securityLevel,
java.lang.Integer storageType,
java.lang.Integer rowStatus)
targetParamsName - The targetParamsName with which the entry
is to be created.targetParamsMPModel - The targetParamsMPModel with which the entry
is to be created.securityModel - The securityModel with which the entry
is to be created.securityName - The securityName with which the entry
is to be created.securityLevel - The securityLevel with which the entry
is to be created.storageType - The storageType for the Entry.rowStatus - The RowStatus Integer for the Entry.createAndAddSnmpTargetAddrEntry.public void setTableVector(java.util.Vector targetParamsVec)
The - Vector of SnmpTargetAddrEntries.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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||