|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.mibs.AgentClauseCommandUtil
com.adventnet.snmp.mibs.SimulateCommandUtil
com.adventnet.snmp.mibs.agent.SimulateCommand
public class SimulateCommand
SimulateCommand class is used to implement the SIMULATE-COMMAND construct in the AGENTCLAUSE.
The output string will be generated depends of type (fixed continious) of output String.
| Field Summary | |
|---|---|
(package private) int |
CONSTANT
|
java.lang.String |
type
Stores type of string like constant ,continous etc. |
| Fields inherited from class com.adventnet.snmp.mibs.AgentClauseCommandUtil |
|---|
AT_START, command_string, EACH_TIME, FIRST_TIME, instantiate, mibOperations, name, node, runTime, timeout |
| Constructor Summary | |
|---|---|
SimulateCommand()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAgentClauseString()
returns comment details of AgentClause. |
(package private) java.lang.String |
getReqMesg(byte type)
|
(package private) java.lang.String |
getReqMesg(SnmpVarBind varbind,
byte type)
|
java.util.Vector |
makeInstances(com.adventnet.snmp.mibs.AgentMibNode leafNode)
This method makes instances of the leafNode and returns a vector which is stored as instances in AgentMibNode. |
void |
parseCommand(java.util.StringTokenizer strTok,
java.lang.String str)
Following methods are used by the previous parseClause method to interpret different COMMAND syntax. |
(package private) java.lang.String |
setReqMesg(SnmpVarBind varbind,
java.util.Vector args)
|
(package private) java.lang.String |
setReqMesg(java.util.Vector str)
|
static void |
setVarbindForNode(MibNode node,
SnmpVarBind varbind,
MibOperations mibOps)
Create a new OID for the input node with default values and sets it to the varbind. |
| Methods inherited from class com.adventnet.snmp.mibs.AgentClauseCommandUtil |
|---|
getCommandString, getName, getTimeout, initialize, isRunTime, setAgentMibOperations, setCommandString, setName, setRunTime, setTimeout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
int CONSTANT
public java.lang.String type
| Constructor Detail |
|---|
public SimulateCommand()
| Method Detail |
|---|
java.lang.String getReqMesg(byte type)
throws AgentSnmpException
AgentSnmpException
java.lang.String getReqMesg(SnmpVarBind varbind,
byte type)
throws AgentSnmpException
AgentSnmpException
public static void setVarbindForNode(MibNode node,
SnmpVarBind varbind,
MibOperations mibOps)
node - of type MibNodevarbind - the newly created OID is set into this varbind.mibOps - having informations of nodes.
java.lang.String setReqMesg(java.util.Vector str)
throws AgentSnmpException
AgentSnmpException
java.lang.String setReqMesg(SnmpVarBind varbind,
java.util.Vector args)
throws AgentSnmpException
AgentSnmpException
public void parseCommand(java.util.StringTokenizer strTok,
java.lang.String str)
throws MibException
parseCommand in class com.adventnet.snmp.mibs.SimulateCommandUtilMibExceptionpublic java.lang.String getAgentClauseString()
getAgentClauseString in class com.adventnet.snmp.mibs.SimulateCommandUtil
public java.util.Vector makeInstances(com.adventnet.snmp.mibs.AgentMibNode leafNode)
throws MibException
makeInstances in class com.adventnet.snmp.mibs.SimulateCommandUtilleafNode - Node where the instances are created
MibException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||