|
|||||||||
| 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.FileCommandUtil
com.adventnet.snmp.mibs.agent.FileCommand
public class FileCommand
FileCommand class is used to implement the FILE-COMMAND construct in the AGENTCLAUSE. The associated OID can refer to a simple file or a table. Rowstatus supported(to create a new row , rowstatus column must be there). To add an new entry into a table,all columner object should have a READ-CREATE access and RowStatus column is set to be 4.
| Field Summary | |
|---|---|
(package private) java.lang.String |
fieldSeparator
|
| 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 | |
|---|---|
FileCommand()
|
|
| Method Summary | |
|---|---|
boolean |
checkForRowStatusColumnValue(SnmpVarBind varbind,
int rowStatusIndex,
boolean getNext)
This function check the value of the "RowStatus" column of a table (if available). |
(package private) boolean |
createRow(java.util.Vector varbinds)
|
java.lang.String |
getAgentClauseString()
Returns the String having AgentClause object details . |
(package private) java.lang.String |
getExecCommand(java.lang.String command,
long timeout)
Executes the command string till it times out. |
java.lang.String |
getFieldSeparator()
Getter for FieldSeperator used in FILE-COMMAND API users will not require this method etc. |
java.lang.String |
getFileName()
getter for FileName. |
(package private) java.lang.String |
getReqMesg(byte type)
|
(package private) java.lang.String |
getReqMesg(SnmpVarBind varbind,
byte req)
|
(package private) static boolean |
isCreateRow(java.util.Vector varbinds,
com.adventnet.snmp.mibs.AgentMibOperations mibOps)
|
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. |
(package private) boolean |
modifyTableElement(SnmpVarBind varbind)
|
java.io.RandomAccessFile |
openRandomFile()
opens the file , which is specified in the name string. |
void |
parseCommand(java.util.StringTokenizer strTok,
java.lang.String str)
|
void |
setFieldSeparator(java.lang.String sep)
Setter for FieldSeperator used in FILE-COMMAND API users will not require this method etc. |
(package private) java.lang.String |
setReqMesg(SnmpVarBind varbind,
java.util.Vector args)
|
(package private) java.lang.String |
setReqMesg(java.util.Vector arguments)
|
| 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 |
|---|
java.lang.String fieldSeparator
| Constructor Detail |
|---|
public FileCommand()
| Method Detail |
|---|
public void setFieldSeparator(java.lang.String sep)
setFieldSeparator in class com.adventnet.snmp.mibs.FileCommandUtilsep - having string used as a seperator.()public java.lang.String getFieldSeparator()
getFieldSeparator in class com.adventnet.snmp.mibs.FileCommandUtil()
java.lang.String getReqMesg(byte type)
throws AgentSnmpException
AgentSnmpException
java.lang.String getReqMesg(SnmpVarBind varbind,
byte req)
throws AgentSnmpException
AgentSnmpException
java.lang.String setReqMesg(java.util.Vector arguments)
throws AgentSnmpException
AgentSnmpException
java.lang.String setReqMesg(SnmpVarBind varbind,
java.util.Vector args)
throws AgentSnmpException
AgentSnmpException
boolean modifyTableElement(SnmpVarBind varbind)
throws AgentSnmpException
AgentSnmpException
boolean createRow(java.util.Vector varbinds)
throws AgentSnmpException
AgentSnmpException
static boolean isCreateRow(java.util.Vector varbinds,
com.adventnet.snmp.mibs.AgentMibOperations mibOps)
throws AgentSnmpException
AgentSnmpException
public java.io.RandomAccessFile openRandomFile()
throws AgentSnmpException
AgentSnmpException
java.lang.String getExecCommand(java.lang.String command,
long timeout)
throws AgentSnmpException
command - command to be executedtimeout - time in millisecs after which the process is terminated
AgentSnmpException
public void parseCommand(java.util.StringTokenizer strTok,
java.lang.String str)
throws MibException
parseCommand in class com.adventnet.snmp.mibs.FileCommandUtilMibExceptionpublic java.lang.String getAgentClauseString()
getAgentClauseString in class com.adventnet.snmp.mibs.FileCommandUtil
public java.util.Vector makeInstances(com.adventnet.snmp.mibs.AgentMibNode leafNode)
throws MibException
makeInstances in class com.adventnet.snmp.mibs.FileCommandUtilleafNode - Node where the instances are created
MibException
public boolean checkForRowStatusColumnValue(SnmpVarBind varbind,
int rowStatusIndex,
boolean getNext)
throws AgentSnmpException
varbind - given from the manager.index - of the RowStatus column of a table.
AgentSnmpException.
AgentSnmpExceptionpublic java.lang.String getFileName()
getFileName in class com.adventnet.snmp.mibs.FileCommandUtil
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||