public final class WorkerStateInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WorkerStateInfo.WorkerExitStatus
The exit status for the worker
|
Constructor and Description |
---|
WorkerStateInfo() |
Modifier and Type | Method and Description |
---|---|
Exception |
getException()
Gets the exception raised by the worker if it exited with failure
|
WorkerStateInfo.WorkerExitStatus |
getExitStatus()
Gets the exit status for the worker
|
boolean |
isRunning()
Whether the worker is running
|
void |
setState(boolean running,
WorkerStateInfo.WorkerExitStatus exitStatus,
Exception exception)
Sets the state for the worker
|
public boolean isRunning()
public void setState(boolean running, WorkerStateInfo.WorkerExitStatus exitStatus, Exception exception)
running
- true if the worker is in a running stateexitStatus
- the exit status for the worker WorkerStateInfo.WorkerExitStatus
exception
- Any exception raised in case of errorspublic WorkerStateInfo.WorkerExitStatus getExitStatus()
public Exception getException()
This documentation was released into the public domain.