|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqat.agent.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
|
Constructor Summary | |
ExecProcess(TestObject t,
java.io.PrintStream so,
int level,
boolean mode,
java.lang.String parentDetails)
This constructs a new ExecProcess with the specified TestObject |
Method Summary | |
int |
checkExitValue()
This function returns the exit value of the running process if it has finished else it returns a negative value. |
void |
destroy()
|
int |
getExitValue()
This function returns the exit value of the running process. |
TestObject |
getTestObject()
This method returns the TestObject associated with this Object. |
void |
interrupt()
This will kill the TestObject execution and free all the resource associated with this TestObject execution. |
boolean |
isDaemon()
|
void |
setDaemon(boolean isDaemon)
|
void |
start()
This method should not be called directly, but rather via ObjectName.start() to ensure the thread is started correctly. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TIMEDOUT_STATE
Constructor Detail |
public ExecProcess(TestObject t, java.io.PrintStream so, int level, boolean mode, java.lang.String parentDetails)
t
- - the TestObject that will be executed when the start() method is called.so
- - the PrintWriter to use for output.level
- - the detail of debug message we want.mode
- - if true, the output is displayed to stdoutparentDetails
- - some details about the parent so we can print it
to the trace files.Method Detail |
public TestObject getTestObject()
public void start()
public int checkExitValue()
public int getExitValue()
public void interrupt()
public boolean isDaemon()
public void setDaemon(boolean isDaemon)
public void destroy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |