public enum CallbackState extends java.lang.Enum<CallbackState>
| Enum Constant and Description |
|---|
CANCELLED
Callback was cancelled by calling
Commander.cancelCallback(CommandReturn). |
ERROR
Callback cancelled because error getting process or thread to run.
|
KILLED
Callback was cancelled by killing executor with calls to
Commander.kill(org.jlab.coda.cMsg.remoteExec.ExecutorInfo, boolean) or Commander.killAll(boolean). |
NONE
No callback exists.
|
PENDING
Callback is scheduled to be run.
|
RUN
Callback was already run.
|
STOPPED
Callback was cancelled by stopping executor process or thread with
calls to
Commander.stop(org.jlab.coda.cMsg.remoteExec.ExecutorInfo, org.jlab.coda.cMsg.remoteExec.CommandReturn) or Commander.stopAll(org.jlab.coda.cMsg.remoteExec.ExecutorInfo). |
| Modifier and Type | Method and Description |
|---|---|
static CallbackState |
getCallbackState(java.lang.String value)
Obtain the enum from the value.
|
static java.lang.String |
getName(java.lang.String value)
Obtain the name from the value.
|
java.lang.String |
getValue()
Get the enum's value.
|
static CallbackState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CallbackState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CallbackState NONE
public static final CallbackState RUN
public static final CallbackState ERROR
public static final CallbackState PENDING
public static final CallbackState KILLED
Commander.kill(org.jlab.coda.cMsg.remoteExec.ExecutorInfo, boolean) or Commander.killAll(boolean).public static final CallbackState STOPPED
Commander.stop(org.jlab.coda.cMsg.remoteExec.ExecutorInfo, org.jlab.coda.cMsg.remoteExec.CommandReturn) or Commander.stopAll(org.jlab.coda.cMsg.remoteExec.ExecutorInfo).public static final CallbackState CANCELLED
Commander.cancelCallback(CommandReturn).public static CallbackState[] values()
for (CallbackState c : CallbackState.values()) System.out.println(c);
public static CallbackState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getValue()
public static java.lang.String getName(java.lang.String value)
value - the value to match.null.public static CallbackState getCallbackState(java.lang.String value)
value - the value to match.null.