@ThreadSafety(level=COMPLETELY_THREADSAFE) public enum TaskState extends java.lang.Enum<TaskState>
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
Enum Constant and Description |
---|
CANCELED_BEFORE_STARTING
The task state that indicates that the task was canceled before it started
running.
|
COMPLETED_SUCCESSFULLY
The task state that indicates that the task has completed successfully.
|
COMPLETED_WITH_ERRORS
The task state that indicates that the task has completed but with one or
more errors.
|
DISABLED
The task state that indicates that the task has been disabled.
|
RUNNING
The task state that indicates that the task is running.
|
STOPPED_BY_ADMINISTRATOR
The task state that indicates that the task was forced to stop running when
it was canceled by an administrator.
|
STOPPED_BY_ERROR
The task state that indicates that the task was forced to stop running when
it encountered an unrecoverable error.
|
STOPPED_BY_SHUTDOWN
The task state that indicates that the task was forced to stop running when
the task scheduler was shut down.
|
UNSCHEDULED
The task state that indicates that the task has not yet been scheduled.
|
WAITING_ON_DEPENDENCY
The task state that indicates that the task has one or more unsatisfied
dependencies.
|
WAITING_ON_START_TIME
The task state that indicates that the task is waiting on the start time to
arrive.
|
Modifier and Type | Method and Description |
---|---|
static TaskState |
forName(java.lang.String name)
Retrieves the task state with the specified name.
|
java.lang.String |
getName()
Retrieves the name of this task state.
|
boolean |
isCompleted()
Indicates whether this task state indicates that the task has completed all
of the processing that it will do.
|
boolean |
isPending()
Indicates whether this task state indicates that the task has not yet
started running.
|
boolean |
isRunning()
Indicates whether this task state indicates that the task is currently
running.
|
java.lang.String |
toString()
Retrieves a string representation of this task state.
|
static TaskState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TaskState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskState CANCELED_BEFORE_STARTING
public static final TaskState COMPLETED_SUCCESSFULLY
public static final TaskState COMPLETED_WITH_ERRORS
public static final TaskState DISABLED
public static final TaskState RUNNING
public static final TaskState STOPPED_BY_ADMINISTRATOR
public static final TaskState STOPPED_BY_ERROR
public static final TaskState STOPPED_BY_SHUTDOWN
public static final TaskState UNSCHEDULED
public static final TaskState WAITING_ON_DEPENDENCY
public static final TaskState WAITING_ON_START_TIME
public static TaskState[] values()
for (TaskState c : TaskState.values()) System.out.println(c);
public static TaskState 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 null@NotNull public java.lang.String getName()
@Nullable public static TaskState forName(@NotNull java.lang.String name)
name
- The name of the task state to retrieve.null
if there is no state
with the given name.public boolean isPending()
true
if this task state indicates that the task has not
yet started, or false
if not.public boolean isRunning()
true
if this task state indicates that the task is
currently running, or false
if not.public boolean isCompleted()
true
if this task state indicates that the task has
completed all of the processing that it will do, or false
if not.