|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.snmp.mibs.AgentClauseCommandUtil
|
+--com.adventnet.snmp.mibs.agent.AgentClauseCommand
This is the base class which is extended by FILE-COMMAND etc.
AGENTCLAUSE implementation API class which is extended by ClassCommand , FileCommand, ReadWriteCommand etc
API users do not need these classes and neednot use this class directly
| Field Summary | |
static int |
AT_START
Setting the value of instantiate to AT_START will make the command get executed only when the agent is start or object is instantiated |
(package private) java.lang.String |
command_string
|
static int |
EACH_TIME
Setting the value of instantiate to EACH_TIME will make the command get executed each time |
static int |
FIRST_TIME
Setting the value of instantiate to FIRST_TIME will make the command get executed only the first time agent clause command is executed |
int |
instantiate
This can be any of AT_START, EACH_TIME, FIRST_TIME |
(package private) AgentMibOperations |
mibOperations
|
(package private) java.lang.String |
name
|
(package private) AgentMibNode |
node
|
(package private) boolean |
runTime
|
(package private) long |
timeout
|
| 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 | |
AgentClauseCommand()
|
|
| Method Summary | |
java.lang.String |
getAgentClauseString()
This method implements the getAgentClauseString() |
java.lang.String |
getCommandString()
Getter for command string. |
java.lang.String |
getName()
getter for the name of command associated with this AgentClause. |
(package private) abstract java.lang.String |
getReqMesg(byte type)
|
(package private) abstract java.lang.String |
getReqMesg(SnmpVarBind varbind,
byte type)
|
long |
getTimeout()
getter for command timeout. |
void |
initialize()
initialize method,will be used in future. |
boolean |
isRunTime()
checks whether runTime environment is set. |
abstract java.util.Vector |
makeInstances(AgentMibNode leafNode)
This method makes instances of the leafNode and returns a vector which is stored as instances in AgentMibNode. |
abstract void |
parseCommand(java.util.StringTokenizer tok,
java.lang.String s)
|
void |
setAgentMibOperations(AgentMibOperations mibops)
Set the miboperations for looking up nodes |
void |
setCommandString(java.lang.String str)
Setter for command string. |
void |
setName(java.lang.String str)
setter for the name of the command associated with this AgentClause. |
(package private) abstract java.lang.String |
setReqMesg(SnmpVarBind varbind,
java.util.Vector args)
|
(package private) abstract java.lang.String |
setReqMesg(java.util.Vector args)
|
void |
setRunTime(boolean val)
Setter for runtime environment variable which decides whether to throw exceptions |
void |
setTimeout(long time)
setter for command timeout. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final int EACH_TIME
public static final int FIRST_TIME
public static final int AT_START
public int instantiate
java.lang.String command_string
long timeout
java.lang.String name
AgentMibOperations mibOperations
AgentMibNode node
boolean runTime
| Constructor Detail |
public AgentClauseCommand()
| Method Detail |
public void setCommandString(java.lang.String str)
()public java.lang.String getCommandString()
()public long getTimeout()
()public void setTimeout(long time)
getTimeout()public java.lang.String getName()
()public void setName(java.lang.String str)
()public void setAgentMibOperations(AgentMibOperations mibops)
public void setRunTime(boolean val)
public boolean isRunTime()
()
public abstract void parseCommand(java.util.StringTokenizer tok,
java.lang.String s)
throws MibException
public void initialize()
throws MibException
public java.lang.String getAgentClauseString()
abstract java.lang.String getReqMesg(byte type)
throws AgentSnmpException
abstract java.lang.String getReqMesg(SnmpVarBind varbind,
byte type)
throws AgentSnmpException
abstract java.lang.String setReqMesg(java.util.Vector args)
throws AgentSnmpException
abstract java.lang.String setReqMesg(SnmpVarBind varbind,
java.util.Vector args)
throws AgentSnmpException
public abstract java.util.Vector makeInstances(AgentMibNode leafNode)
throws MibException
leafNode - Node where the instances are created
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||