public class LaunchedTaskStore
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LaunchedTaskStore.ExitCallback
Kills the executor process.
|
Constructor and Description |
---|
LaunchedTaskStore(java.lang.Runnable exitCallback) |
LaunchedTaskStore(java.lang.Runnable exitCallback,
int exitPollIntervalMs) |
Modifier and Type | Method and Description |
---|---|
java.lang.Runnable |
getMonitor()
Returns the monitor process to be run once the executor has registered.
|
void |
kill(Protos.TaskID taskId)
Kills a previously added task, or does nothing if the specified task is already killed or could not be found.
|
void |
killAll()
Kills any previously added tasks that are still running.
|
void |
put(Protos.TaskID taskId,
LaunchedTask launchedTask)
Adds a launched task.
|
public LaunchedTaskStore(java.lang.Runnable exitCallback)
LaunchedTaskStore(java.lang.Runnable exitCallback, int exitPollIntervalMs)
public java.lang.Runnable getMonitor()
public void put(Protos.TaskID taskId, LaunchedTask launchedTask)
public void kill(Protos.TaskID taskId)
public void killAll()