Enum OperationStatus

java.lang.Object
java.lang.Enum<OperationStatus>
org.apache.flink.table.gateway.api.operation.OperationStatus
All Implemented Interfaces:
Serializable, Comparable<OperationStatus>

@PublicEvolving public enum OperationStatus extends Enum<OperationStatus>
Status to describe the Operation.
  • Enum Constant Details

    • INITIALIZED

      public static final OperationStatus INITIALIZED
      The operation is newly created.
    • PENDING

      public static final OperationStatus PENDING
      Prepare the resources for the operation.
    • RUNNING

      public static final OperationStatus RUNNING
      The operation is running.
    • FINISHED

      public static final OperationStatus FINISHED
      All the work is finished and ready for the client to fetch the results.
    • CANCELED

      public static final OperationStatus CANCELED
      Operation has been cancelled.
    • CLOSED

      public static final OperationStatus CLOSED
      Operation has been closed and all related resources are collected.
    • ERROR

      public static final OperationStatus ERROR
      Some error happens.
    • TIMEOUT

      public static final OperationStatus TIMEOUT
      The execution of the operation timeout.
  • Method Details

    • values

      public static OperationStatus[] 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 OperationStatus 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
    • isValidStatusTransition

      public static boolean isValidStatusTransition(OperationStatus fromStatus, OperationStatus toStatus)
    • isTerminalStatus

      public boolean isTerminalStatus()