Handles a job execution in the underlying grid platform
Type | Name and description |
---|---|
BatchCleanup |
batch |
java.nio.file.Path |
errorFile Location of the file holding the task std error |
AbstractGridExecutor |
executor The target executor platform |
java.nio.file.Path |
exitFile Location of the file created when the job is terminated |
java.nio.file.Path |
outputFile Location of the file holding the task std output |
java.nio.file.Path |
startFile Location of the file created when the job is started |
java.nio.file.Path |
wrapperFile The wrapper file used to execute the user script |
Constructor and description |
---|
protected GridTaskHandler
() only for testing purpose |
GridTaskHandler
(TaskRun task, AbstractGridExecutor executor) |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
checkIfCompleted() |
|
boolean |
checkIfRunning() |
|
protected java.lang.ProcessBuilder |
createProcessBuilder() |
|
TraceRecord |
getTraceRecord() @return An TraceRecord instance holding task runtime information |
|
void |
kill() |
|
protected boolean |
passSanityCheck() |
|
protected java.lang.Integer |
readExitStatus() When a process terminated save its exit status into the file defined by #exitFile |
|
void |
submit() |
|
protected java.lang.StringBuilder |
toStringBuilder(java.lang.StringBuilder builder) |
Methods inherited from class | Name |
---|---|
class TaskHandler |
checkIfCompleted, checkIfRunning, getStatusString, getTask, getTraceRecord, isCompleted, isNew, isRunning, isSubmitted, kill, setStatus, submit, toString, toStringBuilder |
Location of the file holding the task std error
The target executor platform
Location of the file created when the job is terminated
Location of the file holding the task std output
Location of the file created when the job is started
The wrapper file used to execute the user script
only for testing purpose
When a process terminated save its exit status into the file defined by #exitFile
null
if the file does not exist. When the
file contains an invalid number return Integer#MAX_VALUE
Groovy Documentation