public interface IgniteSnapshot
Current limitations:
IgniteDataStreamer with default IgniteDataStreamer.allowOverwrite()
setting (false) into a persistent cache can cause that cache data stored inconsistent.| Modifier and Type | Method and Description |
|---|---|
IgniteFuture<Void> |
cancelSnapshot(String name)
Cancel running snapshot operation.
|
IgniteFuture<Boolean> |
cancelSnapshotRestore(String name)
Cancel snapshot restore operation.
|
IgniteFuture<Void> |
createDump(String name,
@Nullable Collection<String> cacheGroupNames)
Creates cache groups dump.
|
IgniteFuture<Void> |
createIncrementalSnapshot(String snapshotName)
Create an incremental snapshot for an existing snapshot.
|
IgniteFuture<Void> |
createSnapshot(String name)
Create a consistent copy of all persistence cache groups from the whole cluster.
|
IgniteFuture<Void> |
restoreSnapshot(String name,
@Nullable Collection<String> cacheGroupNames)
Restore cache group(s) from the snapshot.
|
IgniteFuture<Void> |
restoreSnapshot(String name,
@Nullable Collection<String> cacheGroupNames,
int incIdx)
Restore cache group(s) from the snapshot and its increments.
|
IgniteFuture<Void> createSnapshot(String name)
name - Snapshot unique name which satisfies the following name pattern [a-zA-Z0-9_].IgniteFuture<Void> createIncrementalSnapshot(String snapshotName)
snapshotName - Snapshot name.IgniteFuture<Void> cancelSnapshot(String name)
name - Snapshot name to cancel.IgniteFuture<Void> createDump(String name, @Nullable @Nullable Collection<String> cacheGroupNames)
name - Dump name.cacheGroupNames - Cache groups to include in snapshot or null to include all.IgniteFuture<Void> restoreSnapshot(String name, @Nullable @Nullable Collection<String> cacheGroupNames)
NOTE: Cache groups to be restored from the snapshot must not present in the cluster, if they present,
they must be destroyed by the user (eg with IgniteCache.destroy()) before starting this operation.
name - Snapshot name.cacheGroupNames - Cache groups to be restored or null to restore all cache groups from the snapshot.IgniteFuture<Void> restoreSnapshot(String name, @Nullable @Nullable Collection<String> cacheGroupNames, int incIdx)
1 to the specified incIdx.
NOTE: Cache groups to be restored from the snapshot must not present in the cluster, if they present,
they must be destroyed by the user (eg with IgniteCache.destroy()) before starting this operation.
name - Snapshot name.cacheGroupNames - Cache groups to be restored or null to restore all cache groups from the snapshot.incIdx - Index of incremental snapshot.IgniteFuture<Boolean> cancelSnapshotRestore(String name)
name - Snapshot name.false if the restore process with the specified snapshot name is not running at all.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023