public class CheckSnapshotParams extends Object
Constructor and Description |
---|
CheckSnapshotParams() |
Modifier and Type | Method and Description |
---|---|
@Nullable Set<String> |
cacheNames()
Cache names to check.
|
CheckSnapshotParams |
cacheNames(@Nullable Set<String> cacheNames)
Sets cache names to check.
|
IgniteBiClosure<String,CacheConfiguration,CacheConfiguration> |
conversionClosure() |
CheckSnapshotParams |
conversionClosure(IgniteBiClosure<String,CacheConfiguration,CacheConfiguration> conversionClosure)
Sets optional closure for CacheConfiguration conversion during snapshot restore.
|
@Nullable Set<String> |
excludedCacheNames()
Excluded cache names to check.
|
CheckSnapshotParams |
excludedCacheNames(@Nullable Set<String> excludedCacheNames)
Sets excluded cache names from checking.
|
boolean |
forceRestore() |
CheckSnapshotParams |
forceRestore(boolean forceRestore)
Sets check snapshot for force restore or not, default is
false . |
String |
message() |
CheckSnapshotParams |
message(String msg)
Sets additional optional user message that will be printed out to the log and will be saved in snapshot catalog.
|
SnapshotOperationType |
operationType() |
CheckSnapshotParams |
operationType(SnapshotOperationType type)
Sets type.
|
Collection<SnapshotPath> |
optionalSearchPaths() |
CheckSnapshotParams |
optionalSearchPaths(Collection<SnapshotPath> optSearchPaths)
Sets optional path to search for snapshots data.
|
Integer |
parallelism() |
CheckSnapshotParams |
parallelism(Integer parallelism)
Sets parallelism level for snapshot check operation.
|
boolean |
skipCrc() |
CheckSnapshotParams |
skipCrc(boolean skipCrc)
Sets flag to skip CRC check, default is
false . |
long |
snapshotId() |
CheckSnapshotParams |
snapshotId(long snapshotId)
Sets snapshot ID to check.
|
String |
toString() |
public long snapshotId()
public CheckSnapshotParams snapshotId(long snapshotId)
snapshotId
- Snapshot ID to check.public SnapshotOperationType operationType()
public CheckSnapshotParams operationType(SnapshotOperationType type)
type
- Type.@Nullable public @Nullable Set<String> cacheNames()
null
, all saved caches will be checked.public CheckSnapshotParams cacheNames(@Nullable @Nullable Set<String> cacheNames)
null
, all saved caches will be checked.cacheNames
- Cache names to check.@Nullable public @Nullable Set<String> excludedCacheNames()
null
, no caches will be excluded.public CheckSnapshotParams excludedCacheNames(@Nullable @Nullable Set<String> excludedCacheNames)
null
, no caches will be excluded.excludedCacheNames
- Excluded cache names.public boolean forceRestore()
public CheckSnapshotParams forceRestore(boolean forceRestore)
false
.forceRestore
- Check snapshot for force restore or not, default is false
.public Collection<SnapshotPath> optionalSearchPaths()
public CheckSnapshotParams optionalSearchPaths(Collection<SnapshotPath> optSearchPaths)
optSearchPaths
- Optional path to search for snapshots data. If a snapshot was moved to an external.public boolean skipCrc()
public CheckSnapshotParams skipCrc(boolean skipCrc)
false
.skipCrc
- Flag to skip CRC check.public IgniteBiClosure<String,CacheConfiguration,CacheConfiguration> conversionClosure()
public CheckSnapshotParams conversionClosure(IgniteBiClosure<String,CacheConfiguration,CacheConfiguration> conversionClosure)
conversionClosure
- Optional closure for CacheConfiguration conversion during snapshot restore.public String message()
public CheckSnapshotParams message(String msg)
msg
- Additional optional user message that will be printed out to the log
and will be saved in snapshot catalog.public Integer parallelism()
public CheckSnapshotParams parallelism(Integer parallelism)
parallelism
- Level of parallelism for check operation.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024