public class RestoreSnapshotParams extends Object
Constructor and Description |
---|
RestoreSnapshotParams() |
Modifier and Type | Method and Description |
---|---|
@Nullable Set<String> |
cacheNames()
Collection of cache names to restore from this snapshot.
|
RestoreSnapshotParams |
cacheNames(@Nullable Set<String> cacheNames)
Sets collection of cache names to restore from this snapshot.
|
IgniteBiClosure<String,CacheConfiguration,CacheConfiguration> |
conversionClosure() |
RestoreSnapshotParams |
conversionClosure(IgniteBiClosure<String,CacheConfiguration,CacheConfiguration> conversionClosure)
Sets closure for CacheConfiguration conversion during snapshot restore.
|
@Nullable Set<String> |
excludedCacheNames()
Collection of cache names excluded from this snapshot.
|
RestoreSnapshotParams |
excludedCacheNames(@Nullable Set<String> excludedCacheNames)
Sets collection of cache names excluded from this snapshot.
|
boolean |
forceRestore() |
RestoreSnapshotParams |
forceRestore(boolean forceRestore)
Sets flag indicating restore force: if newly created cache in group may be destroyed by this
restore, default is
false . |
String |
message() |
RestoreSnapshotParams |
message(String msg)
Sets user message.
|
Collection<SnapshotPath> |
optionalSearchPaths() |
RestoreSnapshotParams |
optionalSearchPaths(Collection<SnapshotPath> optSearchPaths)
Sets Optional path to search for snapshots data.
|
Integer |
parallelism() |
RestoreSnapshotParams |
parallelism(Integer parallelism)
Sets parallelism level for snapshot restore operation.
|
long |
snapshotId() |
RestoreSnapshotParams |
snapshotId(long snapshotId)
Sets id of snapshot to restore.
|
String |
toString() |
public long snapshotId()
public RestoreSnapshotParams snapshotId(long snapshotId)
snapshotId
- Id of snapshot to restore.public Collection<SnapshotPath> optionalSearchPaths()
public RestoreSnapshotParams optionalSearchPaths(Collection<SnapshotPath> optSearchPaths)
optSearchPaths
- Optional search snapshot paths.@Nullable public @Nullable Set<String> cacheNames()
null
, all saved caches will be restored.public RestoreSnapshotParams cacheNames(@Nullable @Nullable Set<String> cacheNames)
null
, all saved caches will be restored.cacheNames
- Cache names to restore.@Nullable public @Nullable Set<String> excludedCacheNames()
null
, no caches will be excluded.public RestoreSnapshotParams excludedCacheNames(@Nullable @Nullable Set<String> excludedCacheNames)
null
, no caches will be excluded.excludedCacheNames
- Cache names excluded from restoring.public boolean forceRestore()
public RestoreSnapshotParams forceRestore(boolean forceRestore)
false
.forceRestore
- Flag indicating restore force.public IgniteBiClosure<String,CacheConfiguration,CacheConfiguration> conversionClosure()
public RestoreSnapshotParams conversionClosure(IgniteBiClosure<String,CacheConfiguration,CacheConfiguration> conversionClosure)
conversionClosure
- Closure for CacheConfiguration conversion during snapshot restore.public String message()
public RestoreSnapshotParams message(String msg)
msg
- User message.public Integer parallelism()
public RestoreSnapshotParams parallelism(Integer parallelism)
parallelism
- Level of parallelism for restore operation.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024