Class IncrementalSnapshotVerificationTask
- java.lang.Object
-
- org.apache.ignite.compute.ComputeTaskAdapter<SnapshotPartitionsVerifyTaskArg,SnapshotPartitionsVerifyTaskResult>
-
- org.apache.ignite.internal.processors.cache.persistence.snapshot.AbstractSnapshotVerificationTask
-
- org.apache.ignite.internal.processors.cache.persistence.snapshot.IncrementalSnapshotVerificationTask
-
- All Implemented Interfaces:
Serializable,ComputeTask<SnapshotPartitionsVerifyTaskArg,SnapshotPartitionsVerifyTaskResult>
@GridInternal public class IncrementalSnapshotVerificationTask extends AbstractSnapshotVerificationTask
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIncrementalSnapshotVerificationTask.HashHolderHolder for calculated hashes.-
Nested classes/interfaces inherited from class org.apache.ignite.internal.processors.cache.persistence.snapshot.AbstractSnapshotVerificationTask
AbstractSnapshotVerificationTask.AbstractSnapshotVerificationJob
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.cache.persistence.snapshot.AbstractSnapshotVerificationTask
ignite, log, metas
-
-
Constructor Summary
Constructors Constructor Description IncrementalSnapshotVerificationTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.ignite.internal.processors.cache.persistence.snapshot.IncrementalSnapshotVerificationTask.VerifyIncrementalSnapshotJobcreateJob(String name, String consId, SnapshotPartitionsVerifyTaskArg args)SnapshotPartitionsVerifyTaskResultreduce(List<ComputeJobResult> results)Reduces (or aggregates) results received so far into one compound result to be returned to caller viaComputeTaskFuture.get()method.-
Methods inherited from class org.apache.ignite.internal.processors.cache.persistence.snapshot.AbstractSnapshotVerificationTask
map, result
-
-
-
-
Method Detail
-
reduce
public SnapshotPartitionsVerifyTaskResult reduce(List<ComputeJobResult> results) throws IgniteException
Reduces (or aggregates) results received so far into one compound result to be returned to caller viaComputeTaskFuture.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.
- Parameters:
results- Received results of broadcasted remote executions. Note that if task class hasComputeTaskNoResultCacheannotation, then this list will be empty.- Returns:
- Grid job result constructed from results of remote executions.
- Throws:
IgniteException- If reduction or results caused an error. This exception will be thrown out ofComputeTaskFuture.get()method.
-
createJob
protected org.apache.ignite.internal.processors.cache.persistence.snapshot.IncrementalSnapshotVerificationTask.VerifyIncrementalSnapshotJob createJob(String name, String consId, SnapshotPartitionsVerifyTaskArg args)
- Specified by:
createJobin classAbstractSnapshotVerificationTask- Parameters:
name- Snapshot name.consId- Consistent id of the related node.args- Check snapshot parameters.- Returns:
- Compute job.
-
-