Enum TaskState
- All Implemented Interfaces:
Serializable,Comparable<TaskState>,java.lang.constant.Constable
This class defines a task state, which provides information about the current
state of processing for a scheduled task.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe task state that indicates that the task was canceled before it started running.The task state that indicates that the task has completed successfully.The task state that indicates that the task has completed but with one or more errors.The task state that indicates that the task has been disabled.The task state that indicates that the task is running.The task state that indicates that the task was forced to stop running when it was canceled by an administrator.The task state that indicates that the task was forced to stop running when it encountered an unrecoverable error.The task state that indicates that the task was forced to stop running when the task scheduler was shut down.The task state that indicates that the task has not yet been scheduled.The task state that indicates that the task has one or more unsatisfied dependencies.The task state that indicates that the task is waiting on the start time to arrive. -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskStateRetrieves the task state with the specified name.getName()Retrieves the name of this task state.booleanIndicates whether this task state indicates that the task has completed all of the processing that it will do.booleanIndicates whether this task state indicates that the task has not yet started running.booleanIndicates whether this task state indicates that the task is currently running.toString()Retrieves a string representation of this task state.static TaskStateReturns 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.
-
Enum Constant Details
-
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
Retrieves the name of this task state.- Returns:
- The name of this task state.
-
forName
Retrieves the task state with the specified name.- Parameters:
name- The name of the task state to retrieve.- Returns:
- The requested task state, or
nullif there is no state with the given name.
-
isPending
Indicates whether this task state indicates that the task has not yet started running.- Returns:
trueif this task state indicates that the task has not yet started, orfalseif not.
-
isRunning
Indicates whether this task state indicates that the task is currently running.- Returns:
trueif this task state indicates that the task is currently running, orfalseif not.
-
isCompleted
Indicates whether this task state indicates that the task has completed all of the processing that it will do.- Returns:
trueif this task state indicates that the task has completed all of the processing that it will do, orfalseif not.
-
toString
Retrieves a string representation of this task state.
-