com.adventnet.snmp.mibs.agent
Class SimulateCommand
java.lang.Object
|
+--com.adventnet.snmp.mibs.AgentClauseCommandUtil
|
+--com.adventnet.snmp.mibs.SimulateCommandUtil
|
+--com.adventnet.snmp.mibs.agent.SimulateCommand
- public class SimulateCommand
- extends SimulateCommandUtil
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. |
|
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(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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
CONSTANT
int CONSTANT
type
public java.lang.String type
- Stores type of string like constant ,continous etc.
SimulateCommand
public SimulateCommand()
getReqMesg
java.lang.String getReqMesg(byte type)
throws AgentSnmpException
getReqMesg
java.lang.String getReqMesg(SnmpVarBind varbind,
byte type)
throws AgentSnmpException
setVarbindForNode
public 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.
- Parameters:
node - of type MibNodevarbind - the newly created OID is set into this varbind.mibOps - having informations of nodes.
setReqMesg
java.lang.String setReqMesg(java.util.Vector str)
throws AgentSnmpException
setReqMesg
java.lang.String setReqMesg(SnmpVarBind varbind,
java.util.Vector args)
throws AgentSnmpException
parseCommand
public void parseCommand(java.util.StringTokenizer strTok,
java.lang.String str)
throws MibException
- Following methods are used by the previous parseClause method
to interpret different COMMAND syntax.
- Overrides:
- parseCommand in class SimulateCommandUtil
- Returns:
- returns filled SimulateCommand class to be put in the hashtable
getAgentClauseString
public java.lang.String getAgentClauseString()
- returns comment details of AgentClause.
- Overrides:
- getAgentClauseString in class SimulateCommandUtil
- Returns:
- String which stores the comment details.
makeInstances
public java.util.Vector makeInstances(AgentMibNode leafNode)
throws MibException
- This method makes instances of the leafNode and returns a vector
which is stored as instances in AgentMibNode. If the node is a part of
table then it parses the associated file-table and fills the instances
variable.
Used by the Agent for initialising and making instances from DEFVAL or
- Overrides:
- makeInstances in class SimulateCommandUtil
- Parameters:
leafNode - Node where the instances are created- Returns:
- vector of InstanceTypes