Class SnapshotResponseRemoteFutureTask

    • Constructor Detail

      • SnapshotResponseRemoteFutureTask

        public SnapshotResponseRemoteFutureTask​(GridCacheSharedContext<?,​?> cctx,
                                                UUID srcNodeId,
                                                UUID reqId,
                                                String snpName,
                                                String snpPath,
                                                SnapshotSender snpSndr,
                                                Map<Integer,​Set<Integer>> parts)
        Parameters:
        cctx - Shared context.
        srcNodeId - Node id which cause snapshot task creation.
        reqId - Snapshot operation request ID.
        snpName - Unique identifier of snapshot process.
        snpPath - Snapshot directory path.
        snpSndr - Factory which produces snapshot receiver instance.
        parts - Partition to be processed.
    • Method Detail

      • start

        public boolean start()
        Initiates snapshot task.
        Returns:
        true if task started by this call.
      • acceptException

        public void acceptException​(Throwable th)
        Parameters:
        th - An exception which occurred during snapshot processing.
      • snapshotName

        public String snapshotName()
        Returns:
        Snapshot name.
      • sourceNodeId

        public UUID sourceNodeId()
        Returns:
        Node id which triggers this operation.
      • requestId

        public UUID requestId()
        Returns:
        Snapshot operation request ID.
      • affectedCacheGroups

        public Set<Integer> affectedCacheGroups()
        Returns:
        Set of cache groups included into snapshot operation.
      • cancel

        public boolean cancel()
        Default no-op implementation that always returns false. Futures that do support cancellation should override this method and call GridFutureAdapter.onCancelled() callback explicitly if cancellation indeed did happen.
        Specified by:
        cancel in interface IgniteInternalFuture<T>
        Overrides:
        cancel in class GridFutureAdapter<T>
        Returns:
        True if future was canceled (i.e. was not finished prior to this call).