Enum Class PitrStatus

java.lang.Object
java.lang.Enum<PitrStatus>
org.gridgain.internal.pitr.metastorage.PitrStatus
All Implemented Interfaces:
Serializable, Comparable<PitrStatus>, Constable

public enum PitrStatus extends Enum<PitrStatus>
Represents a status of a point in time recovery.
  • Enum Constant Details

    • PREPARED

      public static final PitrStatus PREPARED
      Some preparation steps of the operation are under way, but the operation itself has not started yet.
    • STARTED

      public static final PitrStatus STARTED
      Operation has started.
    • COMPLETED

      public static final PitrStatus COMPLETED
      Operation has completed.
    • FAILED

      public static final PitrStatus FAILED
      Operation has failed.
  • Method Details

    • values

      public static PitrStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PitrStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • id

      public int id()
    • fromId

      public static PitrStatus fromId(int requestTypeId) throws IllegalArgumentException
      Returns the enumerated value from its id.
      Parameters:
      requestTypeId - Id of request type.
      Throws:
      IllegalArgumentException - If there is no request type with such id.