public class SnapshotRestoreProcess extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TMP_CACHE_DIR_PREFIX
Temporary cache directory prefix.
|
| Constructor and Description |
|---|
SnapshotRestoreProcess(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
Set<UUID> |
cacheStartRequiredAliveNodes(IgniteUuid reqId) |
IgniteFuture<Boolean> |
cancel(IgniteCheckedException reason,
String snpName)
Cancel the currently running local restore procedure.
|
protected void |
cleanup()
Cleanup temporary directories if any exists.
|
void |
interrupt(IgniteCheckedException reason)
Interrupt the currently running local restore procedure.
|
boolean |
isRestoring(String cacheName,
@Nullable String grpName)
Check if the cache or group with the specified name is currently being restored from the snapshot.
|
void |
onNodeLeft(UUID leftNodeId)
Node left callback.
|
@Nullable String |
restoringSnapshotName()
Get the name of the snapshot currently being restored
|
IgniteFuture<Void> |
start(String snpName,
@Nullable Collection<String> cacheGrpNames)
Start cache group restore operation.
|
public static final String TMP_CACHE_DIR_PREFIX
public SnapshotRestoreProcess(GridKernalContext ctx)
ctx - Kernal context.protected void cleanup()
throws IgniteCheckedException
IgniteCheckedException - If it was not possible to delete some temporary directory.public IgniteFuture<Void> start(String snpName, @Nullable @Nullable Collection<String> cacheGrpNames)
snpName - Snapshot name.cacheGrpNames - Cache groups to be restored or null to restore all cache groups from the snapshot.@Nullable public @Nullable String restoringSnapshotName()
null if the restore process is not running.public boolean isRestoring(String cacheName, @Nullable @Nullable String grpName)
cacheName - Cache name.grpName - Cache group name.True if the cache or group with the specified name is currently being restored.public Set<UUID> cacheStartRequiredAliveNodes(IgniteUuid reqId)
reqId - Request ID.public void onNodeLeft(UUID leftNodeId)
leftNodeId - Left node ID.public IgniteFuture<Boolean> cancel(IgniteCheckedException reason, String snpName)
reason - Interruption reason.snpName - Snapshot name.false if the restore process with the specified snapshot name is not running at all.public void interrupt(IgniteCheckedException reason)
reason - Interruption reason.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021