Class PitrMetaStorageKeys
java.lang.Object
org.gridgain.internal.pitr.metastorage.PitrMetaStorageKeys
Class containing methods and constants related to Meta Storage keys used in the PITR.
There are 3 types of keys:
- That map to recovery Global State in
gridgain.pitr.recover.global.<operation_id>format. - That map to recovery Local State in
gridgain.pitr.recover.local.<operation_id>.<node_name>format. - Global PITR lock key
gridgain.pitr.recover.lock.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.ignite.internal.lang.ByteArraybuildTableLockKey(TableName tableName) Creates a Meta Storage key that maps to recovered table lock.static StringnodeNameFromPitrLocalStateKey(byte[] key) static org.apache.ignite.internal.lang.ByteArraypitrCoordinatorTermKey(UUID operationId) Creates a Meta Storage key that maps to the PITR Coordinator Term of a given operation.static org.apache.ignite.internal.lang.ByteArraypitrGlobalStateKey(UUID operationId) static org.apache.ignite.internal.lang.ByteArraystatic org.apache.ignite.internal.lang.ByteArraypitrLocalStateKey(UUID operationId, String nodeName) static org.apache.ignite.internal.lang.ByteArraypitrLocalStatePrefix(UUID operationId)
-
Constructor Details
-
PitrMetaStorageKeys
public PitrMetaStorageKeys()
-
-
Method Details
-
pitrGlobalStatePrefix
public static org.apache.ignite.internal.lang.ByteArray pitrGlobalStatePrefix() -
pitrGlobalStateKey
-
pitrLocalStatePrefix
-
pitrLocalStateKey
-
nodeNameFromPitrLocalStateKey
-
pitrCoordinatorTermKey
Creates a Meta Storage key that maps to the PITR Coordinator Term of a given operation.- Parameters:
operationId- Operation ID.- Returns:
- Meta Storage key that maps to the PITR Coordinator term.
-
buildTableLockKey
Creates a Meta Storage key that maps to recovered table lock.- Parameters:
tableName- Table name.
-