java.lang.Object
java.lang.Enum<TaskState>
com.unboundid.ldap.sdk.unboundidds.tasks.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 Constants
    Enum Constant
    Description
    The 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 Type
    Method
    Description
    static TaskState
    Retrieves the task state with the specified name.
    Retrieves the name of this task state.
    boolean
    Indicates whether this task state indicates that the task has completed all of the processing that it will do.
    boolean
    Indicates whether this task state indicates that the task has not yet started running.
    boolean
    Indicates whether this task state indicates that the task is currently running.
    Retrieves a string representation of this task state.
    static TaskState
    Returns the enum constant of this type with the specified name.
    static TaskState[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • CANCELED_BEFORE_STARTING

      public static final TaskState CANCELED_BEFORE_STARTING
      The task state that indicates that the task was canceled before it started running.
    • COMPLETED_SUCCESSFULLY

      public static final TaskState COMPLETED_SUCCESSFULLY
      The task state that indicates that the task has completed successfully.
    • COMPLETED_WITH_ERRORS

      public static final TaskState COMPLETED_WITH_ERRORS
      The task state that indicates that the task has completed but with one or more errors.
    • DISABLED

      public static final TaskState DISABLED
      The task state that indicates that the task has been disabled.
    • RUNNING

      public static final TaskState RUNNING
      The task state that indicates that the task is running.
    • STOPPED_BY_ADMINISTRATOR

      public static final TaskState 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

      public static final TaskState 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

      public static final TaskState STOPPED_BY_SHUTDOWN
      The task state that indicates that the task was forced to stop running when the task scheduler was shut down.
    • UNSCHEDULED

      public static final TaskState UNSCHEDULED
      The task state that indicates that the task has not yet been scheduled.
    • WAITING_ON_DEPENDENCY

      public static final TaskState WAITING_ON_DEPENDENCY
      The task state that indicates that the task has one or more unsatisfied dependencies.
    • WAITING_ON_START_TIME

      public static final TaskState WAITING_ON_START_TIME
      The task state that indicates that the task is waiting on the start time to arrive.
  • Method Details

    • values

      public static TaskState[] 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

      public static TaskState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      Retrieves the name of this task state.
      Returns:
      The name of this task state.
    • forName

      @Nullable public static TaskState forName(@NotNull String name)
      Retrieves the task state with the specified name.
      Parameters:
      name - The name of the task state to retrieve.
      Returns:
      The requested task state, or null if there is no state with the given name.
    • isPending

      public boolean isPending()
      Indicates whether this task state indicates that the task has not yet started running.
      Returns:
      true if this task state indicates that the task has not yet started, or false if not.
    • isRunning

      public boolean isRunning()
      Indicates whether this task state indicates that the task is currently running.
      Returns:
      true if this task state indicates that the task is currently running, or false if not.
    • isCompleted

      public boolean isCompleted()
      Indicates whether this task state indicates that the task has completed all of the processing that it will do.
      Returns:
      true if this task state indicates that the task has completed all of the processing that it will do, or false if not.
    • toString

      Retrieves a string representation of this task state.
      Overrides:
      toString in class Enum<TaskState>
      Returns:
      A string representation of this task state.