public class ProcessTask extends java.lang.Object implements ExecutorTask
CustomExecutor
.Modifier | Constructor and Description |
---|---|
protected |
ProcessTask(ExecutorDriver executorDriver,
Protos.TaskInfo taskInfo,
java.lang.ProcessBuilder processBuilder) |
Modifier and Type | Method and Description |
---|---|
static ProcessTask |
create(ExecutorDriver executorDriver,
Protos.TaskInfo taskInfo) |
(package private) boolean |
isAlive() |
void |
run() |
void |
stop() |
protected ProcessTask(ExecutorDriver executorDriver, Protos.TaskInfo taskInfo, java.lang.ProcessBuilder processBuilder)
public static ProcessTask create(ExecutorDriver executorDriver, Protos.TaskInfo taskInfo)
public void run()
run
in interface java.lang.Runnable
public void stop()
stop
in interface ExecutorTask
boolean isAlive()