|
|||||||||
| 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.agent.AgentClauseCommand
public abstract class 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) com.adventnet.snmp.mibs.AgentMibOperations |
mibOperations
|
(package private) java.lang.String |
name
|
(package private) com.adventnet.snmp.mibs.AgentMibNode |
node
|
(package private) boolean |
runTime
|
(package private) long |
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(com.adventnet.snmp.mibs.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(com.adventnet.snmp.mibs.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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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
com.adventnet.snmp.mibs.AgentMibOperations mibOperations
com.adventnet.snmp.mibs.AgentMibNode node
boolean runTime
| Constructor Detail |
|---|
public AgentClauseCommand()
| Method Detail |
|---|
public void setCommandString(java.lang.String str)
setCommandString in class com.adventnet.snmp.mibs.AgentClauseCommandUtil()public java.lang.String getCommandString()
getCommandString in class com.adventnet.snmp.mibs.AgentClauseCommandUtil()public long getTimeout()
getTimeout in class com.adventnet.snmp.mibs.AgentClauseCommandUtil()public void setTimeout(long time)
setTimeout in class com.adventnet.snmp.mibs.AgentClauseCommandUtilgetTimeout()public java.lang.String getName()
getName in class com.adventnet.snmp.mibs.AgentClauseCommandUtil()public void setName(java.lang.String str)
setName in class com.adventnet.snmp.mibs.AgentClauseCommandUtil()public void setAgentMibOperations(com.adventnet.snmp.mibs.AgentMibOperations mibops)
setAgentMibOperations in class com.adventnet.snmp.mibs.AgentClauseCommandUtilpublic void setRunTime(boolean val)
setRunTime in class com.adventnet.snmp.mibs.AgentClauseCommandUtilpublic boolean isRunTime()
isRunTime in class com.adventnet.snmp.mibs.AgentClauseCommandUtil()
public abstract void parseCommand(java.util.StringTokenizer tok,
java.lang.String s)
throws MibException
parseCommand in class com.adventnet.snmp.mibs.AgentClauseCommandUtilMibException
public void initialize()
throws MibException
initialize in class com.adventnet.snmp.mibs.AgentClauseCommandUtilMibExceptionpublic java.lang.String getAgentClauseString()
getAgentClauseString in class com.adventnet.snmp.mibs.AgentClauseCommandUtil
abstract java.lang.String getReqMesg(byte type)
throws AgentSnmpException
AgentSnmpException
abstract java.lang.String getReqMesg(SnmpVarBind varbind,
byte type)
throws AgentSnmpException
AgentSnmpException
abstract java.lang.String setReqMesg(java.util.Vector args)
throws AgentSnmpException
AgentSnmpException
abstract java.lang.String setReqMesg(SnmpVarBind varbind,
java.util.Vector args)
throws AgentSnmpException
AgentSnmpException
public abstract java.util.Vector makeInstances(com.adventnet.snmp.mibs.AgentMibNode leafNode)
throws MibException
makeInstances in class com.adventnet.snmp.mibs.AgentClauseCommandUtilleafNode - Node where the instances are created
MibException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||