java.lang.Object
java.lang.Enum<SnapshotStatus>
org.gridgain.internal.snapshots.communication.metastorage.SnapshotStatus
All Implemented Interfaces:
Serializable, Comparable<SnapshotStatus>, Constable

public enum SnapshotStatus extends Enum<SnapshotStatus>
Represents a status of a Snapshot Operation.
  • Enum Constant Details

    • PREPARED

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

      public static final SnapshotStatus STARTED
      Operation has started.
    • COMPLETED

      public static final SnapshotStatus COMPLETED
      Operation has completed.
    • FAILED

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

    • values

      public static SnapshotStatus[] 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 SnapshotStatus 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
    • code

      public int code()
    • fromCode

      public static SnapshotStatus fromCode(int code)
      Returns a status by its code.
      Parameters:
      code - Code.