Class SnapshotPartitionsVerifyTask

    • Constructor Detail

      • SnapshotPartitionsVerifyTask

        public SnapshotPartitionsVerifyTask()
    • Method Detail

      • createJob

        protected org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotPartitionsVerifyTask.VerifySnapshotPartitionsJob createJob​(String name,
                                                                                                                                                      String consId,
                                                                                                                                                      SnapshotPartitionsVerifyTaskArg args)
        Specified by:
        createJob in class AbstractSnapshotVerificationTask
        Parameters:
        name - Snapshot name.
        consId - Consistent id of the related node.
        args - Check snapshot parameters.
        Returns:
        Compute job.
      • reduce

        @Nullable
        public @Nullable SnapshotPartitionsVerifyTaskResult reduce​(List<ComputeJobResult> results)
                                                            throws IgniteException
        Reduces (or aggregates) results received so far into one compound result to be returned to caller via 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.

        Parameters:
        results - Received results of broadcasted remote executions. Note that if task class has ComputeTaskNoResultCache annotation, 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 of ComputeTaskFuture.get() method.