Enum Class OperationType
java.lang.Object
java.lang.Enum<OperationType>
org.gridgain.internal.snapshots.communication.metastorage.OperationType
- All Implemented Interfaces:
Serializable,Comparable<OperationType>,Constable
Represents a type of a Snapshot Operation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract <T> Tdeserialize(byte[] bytes) org.apache.ignite.internal.lang.ByteArraymetastorageGlobalKey(UUID operationId) Creates a Meta Storage key that maps to the Global State of a given operation.org.apache.ignite.internal.lang.ByteArrayReturns a prefix of all keys that map to Global States of all operations.org.apache.ignite.internal.lang.ByteArraymetastorageLocalPrefix(UUID operationId) Returns a prefix of all keys that map to Local States of the given operation.nodeName(byte[] localStateKey) Extracts the node name from a given Local State Meta Storage key.static OperationTypeReturns the enum constant of this class with the specified name.static OperationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATE
Operation of creating a snapshot. -
RESTORE
Operation of restoring a snapshot. -
DELETE
Operation of deleting a snapshot.
-
-
Method Details
-
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
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 nameNullPointerException- 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
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
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
Extracts the node name from a given Local State Meta Storage key.- Parameters:
localStateKey- Meta Storage key.- Returns:
- Node name.
-