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

public enum OperationType extends Enum<OperationType>
Represents a type of a Snapshot Operation.
  • Enum Constant Details

    • CREATE

      public static final OperationType CREATE
      Operation of creating a snapshot.
    • RESTORE

      public static final OperationType RESTORE
      Operation of restoring a snapshot.
    • DELETE

      public static final OperationType DELETE
      Operation of deleting a snapshot.
  • Method Details

    • values

      public static OperationType[] 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 OperationType 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
    • deserialize

      public abstract <T> T deserialize(byte[] bytes)
    • metastorageGlobalPrefix

      public org.apache.ignite.internal.lang.ByteArray metastorageGlobalPrefix()
      Returns a prefix of all keys that map to Global States of all operations.
      Returns:
      Meta Storage key prefix that maps to Global States.
    • metastorageLocalPrefix

      public org.apache.ignite.internal.lang.ByteArray metastorageLocalPrefix(UUID operationId)
      Returns a prefix of all keys that map to Local States of the given operation.
      Parameters:
      operationId - Operation ID.
      Returns:
      Meta Storage key prefix that maps to Local States.
    • metastorageGlobalKey

      public org.apache.ignite.internal.lang.ByteArray metastorageGlobalKey(UUID operationId)
      Creates a Meta Storage key that maps to the Global State of a given operation.
      Parameters:
      operationId - Operation ID.
      Returns:
      Meta Storage key that maps to the Global State.
    • nodeName

      public String nodeName(byte[] localStateKey)
      Extracts the node name from a given Local State Meta Storage key.
      Parameters:
      localStateKey - Meta Storage key.
      Returns:
      Node name.