|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
qat.plugins.chorus.ExecProcess
This class is responsible for executing a single TestObject, and starting new threads to read it's standard output and error output streams. It allows for killing of the started TestObject at anytime by calling the cancel() method.
Field Summary | |
static int |
TIMEDOUT_STATE
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ExecProcess(java.lang.String command,
Console console)
|
Method Summary | |
int |
checkExitValue()
This function returns the exit value of the running process if it has finished else it returns a negative value. |
java.lang.String |
getProcessOutput()
This method will execute the process, and return once it is finished. |
void |
interrupt()
This will kill the TestObject execution and free all the resource associated with this TestObject execution. |
void |
run()
This form will read the output of an executed process as a thread, and execution returns immediately. |
void |
setCommand(java.lang.String c)
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int TIMEDOUT_STATE
Constructor Detail |
public ExecProcess(java.lang.String command, Console console)
Method Detail |
public void run()
public void setCommand(java.lang.String c)
public java.lang.String getProcessOutput() throws java.lang.Exception
java.lang.Exception
public int checkExitValue()
public void interrupt()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |