public class SnapshotHandlerRestoreTask extends AbstractSnapshotVerificationTask
ignite, metas| Constructor and Description |
|---|
SnapshotHandlerRestoreTask() |
| Modifier and Type | Method and Description |
|---|---|
protected ComputeJob |
createJob(String name,
@Nullable String path,
int incIdx,
String constId,
Collection<String> groups,
boolean check) |
@Nullable SnapshotPartitionsVerifyTaskResult |
reduce(List<ComputeJobResult> results)
Reduces (or aggregates) results received so far into one compound result to be returned to
caller via
ComputeTaskFuture.get() method. |
checkMissedMetadata, map, resultprotected ComputeJob createJob(String name, @Nullable @Nullable String path, int incIdx, String constId, Collection<String> groups, boolean check)
createJob in class AbstractSnapshotVerificationTaskname - Snapshot name.path - Snapshot directory path.incIdx - Incremental snapshot index.constId - Snapshot metadata file name.groups - Cache groups to be restored from the snapshot. May be empty if all cache groups are being restored.check - If true check snapshot before restore.@Nullable public @Nullable SnapshotPartitionsVerifyTaskResult reduce(List<ComputeJobResult> results)
ComputeTaskFuture.get() method.
Note, that if some jobs did not succeed and could not be failed over then the list of results passed into this method will include the failed results. Otherwise, failed results will not be in the list.
results - Received results of broadcasted remote executions. Note that if task class has
ComputeTaskNoResultCache annotation, then this list will be empty.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023