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 boolean
crashed()
Did the prior execution exit with a non-zero status code?void
execute()
Runs the external command.void
execute(boolean quiet)
Runs the external command.java.lang.String
getErr()
Return the captured error stream.boolean
getOnTime()
java.lang.String
getOutput()
Return the captured output.int
getStatusCode()
int
getTime()
Time in seconds of execution.boolean
timedOut()
Did the prior execution go too long?
-
-
-
Method Detail
-
execute
public void execute(boolean quiet)
Description copied from interface:TCProcess
Runs 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:TCProcess
Runs the external command. Equivalent to execute(false);
-
getOutput
public java.lang.String getOutput()
Description copied from interface:TCProcess
Return the captured output.
-
getErr
public java.lang.String getErr()
Description copied from interface:TCProcess
Return the captured error stream.
-
getTime
public int getTime()
Description copied from interface:TCProcess
Time in seconds of execution.
-
timedOut
public boolean timedOut()
Description copied from interface:TCProcess
Did the prior execution go too long?
-
crashed
public boolean crashed()
Description copied from interface:TCProcess
Did the prior execution exit with a non-zero status code?
-
getOnTime
public boolean getOnTime()
-
getStatusCode
public int getStatusCode()
- Specified by:
getStatusCode
in interfaceTCProcess
- Returns:
- status code of last execution (usually 0 if successful)
-
-