|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqat.parser.AgentInstance
Constructor Summary | |
AgentInstance(java.lang.String name,
int port,
java.lang.String dir,
boolean mode)
This sets up an instance for communicating with an agent |
Method Summary | |
java.lang.String |
CHECKFILE(java.lang.String filename)
This method returns "0" if filename exists, and "1" if it doesn't. |
void |
CMDCLEAN(java.lang.String processID)
|
java.lang.String |
CMDGETTRACE(java.lang.String processID,
java.lang.String fileName)
|
java.lang.String |
CMDSTART(java.lang.String[] command,
java.lang.String timeout)
This starts a command on the agent corresponding to this agent instance |
java.lang.String |
CMDSTATUS(java.lang.String processID)
|
java.lang.String |
CMDSTOP(java.lang.String processID)
If the process is still running, it will be killed and the return will be * negative, else if it wasn't running, the exit status will be returned. |
void |
DAEMONCLEAN()
|
void |
DAEMONSTART(java.lang.String[] command)
This starts a command on the agent corresponding to this agent instance |
void |
DELAGENT()
* This method is called to clean up any trace, stdout & stderror files created * by calls to STARTCMD. |
void |
DELFILE(java.lang.String filename)
|
void |
DELPROP(java.lang.String key,
java.lang.String value)
This deletes a property previously set by a call to SETPROP |
java.lang.String |
ENVTRACECONTAINS(java.lang.String processID,
java.lang.String fileName,
java.lang.String grepString)
|
java.lang.String |
getAgentName()
This returns the name of the machine corresponding to this agent instance. |
int |
getAgentPort()
This returns the port of the machine running the agent corresponding to this agent instance. |
java.lang.String |
getAgentWorkDirectory()
This returns the working directory of the agent corresponding to * this agent instance. |
void |
GETFILE(java.lang.String src,
java.lang.String dest)
|
java.lang.String[] |
GETTRACEPATHS(java.lang.String processID)
|
boolean |
inEvaluationMode()
Returns true if this agent instance is currently in evaluation mode, else it returns false. |
boolean |
isHandlingProcess(java.lang.String processID)
Looks through currently running processes for an identifier matching processID |
boolean |
isHandlingZip(java.lang.String zipID)
Looks through sent zip lists for an identifier matching zipID |
void |
KILLALL()
This method will kill all process running in this agent, whether related to this AgentInstace or not. |
void |
KILLSTARTEDPROCESSES()
This method will kill any processes started by this AgentInstance, but will leave others running * in the agent alone. |
void |
MKDIR(java.lang.String filename)
|
void |
SENDFILE(java.lang.String src,
java.lang.String dest)
|
void |
setAgentName(java.lang.String name)
This sets the name of the machine corresponding to this agent instance |
void |
setAgentPort(int port)
This sets the name of the machine corresponding to this agent instance |
void |
setAgentWorkDirectory(java.lang.String dir)
This sets the working directory of the agent corresponding to this agent instance |
void |
setEvaluationMode(boolean mode)
Sets this agent instance to evaluation mode, else it returns false |
void |
SETPROP(java.lang.String key,
java.lang.String value)
This sets a property which will be visible to any process executed on the agent * machine by this agent instance |
java.lang.String |
STDERRCONTAINS(java.lang.String processID,
java.lang.String fileName,
java.lang.String grepString)
|
java.lang.String |
STDOUTCONTAINS(java.lang.String processID,
java.lang.String fileName,
java.lang.String grepString)
|
void |
ZIPCLEAN(java.lang.String zipID)
This method cleans a zip file previously sent to the agent matching this agent instance |
java.lang.String |
ZIPSEND(java.lang.String zipFile)
Sends a zip file to the agent machine, places it in the working directory, * and unzips it |
java.lang.String |
ZIPSEND(java.lang.String zipFile,
java.lang.String zipID)
Sends a zip file to the agent machine, places it in the working directory, * and unzips it |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AgentInstance(java.lang.String name, int port, java.lang.String dir, boolean mode) throws java.lang.Exception
Method Detail |
public boolean inEvaluationMode()
public void setEvaluationMode(boolean mode)
public java.lang.String getAgentName()
public void setAgentName(java.lang.String name)
public int getAgentPort()
public void setAgentPort(int port)
public java.lang.String getAgentWorkDirectory()
public void setAgentWorkDirectory(java.lang.String dir) throws java.lang.Exception
java.lang.Exception
public boolean isHandlingProcess(java.lang.String processID)
public boolean isHandlingZip(java.lang.String zipID)
public void DELAGENT() throws java.lang.Exception
java.lang.Exception
public java.lang.String ZIPSEND(java.lang.String zipFile, java.lang.String zipID) throws java.lang.Exception
java.lang.Exception
public java.lang.String ZIPSEND(java.lang.String zipFile) throws java.lang.Exception
java.lang.Exception
public void ZIPCLEAN(java.lang.String zipID) throws java.lang.Exception
java.lang.Exception
public void SETPROP(java.lang.String key, java.lang.String value)
public void DELPROP(java.lang.String key, java.lang.String value)
public java.lang.String CMDSTART(java.lang.String[] command, java.lang.String timeout) throws java.lang.Exception
java.lang.Exception
public java.lang.String CMDSTOP(java.lang.String processID) throws java.lang.Exception
java.lang.Exception
public java.lang.String CMDSTATUS(java.lang.String processID) throws java.lang.Exception
java.lang.Exception
public void DAEMONSTART(java.lang.String[] command) throws java.lang.Exception
java.lang.Exception
public void GETFILE(java.lang.String src, java.lang.String dest) throws java.lang.Exception
java.lang.Exception
public void SENDFILE(java.lang.String src, java.lang.String dest) throws java.lang.Exception
java.lang.Exception
public java.lang.String CHECKFILE(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public void DELFILE(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public void MKDIR(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public java.lang.String CMDGETTRACE(java.lang.String processID, java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
public void CMDCLEAN(java.lang.String processID) throws java.lang.Exception
java.lang.Exception
public void DAEMONCLEAN() throws java.lang.Exception
java.lang.Exception
public java.lang.String ENVTRACECONTAINS(java.lang.String processID, java.lang.String fileName, java.lang.String grepString) throws java.lang.Exception
java.lang.Exception
public java.lang.String STDOUTCONTAINS(java.lang.String processID, java.lang.String fileName, java.lang.String grepString) throws java.lang.Exception
java.lang.Exception
public java.lang.String STDERRCONTAINS(java.lang.String processID, java.lang.String fileName, java.lang.String grepString) throws java.lang.Exception
java.lang.Exception
public java.lang.String[] GETTRACEPATHS(java.lang.String processID) throws java.lang.Exception
java.lang.Exception
public void KILLALL() throws java.lang.Exception
java.lang.Exception
public void KILLSTARTEDPROCESSES() throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |