Package edu.odu.cs.zeil.codegrader
Class InternalTestLauncher
- java.lang.Object
-
- edu.odu.cs.zeil.codegrader.InternalTestLauncher
-
-
Field Summary
-
Fields inherited from interface edu.odu.cs.zeil.codegrader.TCProcess
IS_WINDOWS
-
-
Constructor Summary
Constructors Constructor Description InternalTestLauncher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancrashed()Did the prior execution exit with a non-zero status code?voidexecute()Runs the external command.voidexecute(boolean quiet)Runs the external command.java.lang.StringgetErr()Return the captured error stream.booleangetOnTime()java.lang.StringgetOutput()Return the captured output.intgetStatusCode()intgetTime()Time in seconds of execution.booleantimedOut()Did the prior execution go too long?
-
-
-
Method Detail
-
execute
public void execute(boolean quiet)
Description copied from interface:TCProcessRuns the external command. Standard out and standard err are captured and available as getOutput() and getErr(). The status code is also available.
-
execute
public void execute()
Description copied from interface:TCProcessRuns the external command. Equivalent to execute(false);
-
getOutput
public java.lang.String getOutput()
Description copied from interface:TCProcessReturn the captured output.
-
getErr
public java.lang.String getErr()
Description copied from interface:TCProcessReturn the captured error stream.
-
getTime
public int getTime()
Description copied from interface:TCProcessTime in seconds of execution.
-
timedOut
public boolean timedOut()
Description copied from interface:TCProcessDid the prior execution go too long?
-
crashed
public boolean crashed()
Description copied from interface:TCProcessDid the prior execution exit with a non-zero status code?
-
getOnTime
public boolean getOnTime()
-
getStatusCode
public int getStatusCode()
- Specified by:
getStatusCodein interfaceTCProcess- Returns:
- status code of last execution (usually 0 if successful)
-
-