public abstract class AbstractCreateSnapshotFutureTask extends GridFutureAdapter<T>
| Modifier and Type | Field and Description |
|---|---|
protected GridCacheSharedContext<?,?> |
cctx
Shared context.
|
protected CompletableFuture<Void> |
closeFut
Future which will be completed when task requested to be closed.
|
protected AtomicReference<Throwable> |
err
An exception which has been occurred during snapshot processing.
|
protected IgniteLogger |
log
Ignite logger.
|
protected Map<Integer,Set<Integer>> |
parts
Partition to be processed.
|
protected Map<Integer,Set<Integer>> |
processed
Cache group and corresponding partitions collected under the PME lock.
|
protected UUID |
reqId
Snapshot operation request ID.
|
protected String |
snpName
Unique identifier of snapshot process.
|
protected SnapshotSender |
snpSndr
Snapshot data sender.
|
protected UUID |
srcNodeId
Node id which cause snapshot operation.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCreateSnapshotFutureTask(GridCacheSharedContext<?,?> cctx,
UUID srcNodeId,
UUID reqId,
String snpName,
SnapshotSender snpSndr,
Map<Integer,Set<Integer>> parts) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptException(Throwable th) |
Set<Integer> |
affectedCacheGroups() |
boolean |
cancel()
Default no-op implementation that always returns
false. |
protected abstract CompletableFuture<Void> |
closeAsync() |
protected void |
processPartitions() |
UUID |
requestId() |
protected CompletableFuture<Void> |
runAsync(IgniteThrowableRunner task) |
protected abstract List<CompletableFuture<Void>> |
saveCacheConfigs() |
protected abstract List<CompletableFuture<Void>> |
saveGroup(int grpId,
Set<Integer> grpParts) |
protected void |
saveSnapshotData()
Starts async execution of all tasks required to create snapshot.
|
String |
snapshotName() |
UUID |
sourceNodeId() |
abstract boolean |
start()
Initiates snapshot task.
|
protected boolean |
stopping() |
String |
toString() |
chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, listen, logger, onCancelled, onDone, onDone, onDone, onDone, onDone, reset, resultprotected final Map<Integer,Set<Integer>> processed
SnapshotFutureTask.onMarkCheckpointBegin(CheckpointListener.Context)protected volatile CompletableFuture<Void> closeFut
protected final GridCacheSharedContext<?,?> cctx
protected final IgniteLogger log
protected final UUID srcNodeId
protected final UUID reqId
protected final String snpName
@GridToStringExclude protected final SnapshotSender snpSndr
protected final AtomicReference<Throwable> err
protected AbstractCreateSnapshotFutureTask(GridCacheSharedContext<?,?> cctx, UUID srcNodeId, UUID reqId, String snpName, SnapshotSender snpSndr, Map<Integer,Set<Integer>> parts)
cctx - Shared context.srcNodeId - Node id which cause snapshot task creation.reqId - Snapshot operation request ID.snpName - Snapshot name.snpSndr - Factory which produces snapshot sender instance.parts - Partitions to be processed.protected abstract List<CompletableFuture<Void>> saveCacheConfigs()
protected abstract List<CompletableFuture<Void>> saveGroup(int grpId, Set<Integer> grpParts) throws IgniteCheckedException
IgniteCheckedExceptionpublic boolean cancel()
false.
Futures that do support cancellation should override this method
and call GridFutureAdapter.onCancelled() callback explicitly if cancellation
indeed did happen.cancel in interface IgniteInternalFuture<SnapshotFutureTaskResult>True if future was canceled (i.e. was not finished prior to this call).protected abstract CompletableFuture<Void> closeAsync()
protected boolean stopping()
true if current task requested to be stopped.protected void processPartitions()
throws IgniteCheckedException
IgniteCheckedExceptionprotected void saveSnapshotData()
public void acceptException(Throwable th)
th - An exception which occurred during snapshot processing.protected CompletableFuture<Void> runAsync(IgniteThrowableRunner task)
public String snapshotName()
public UUID sourceNodeId()
public UUID requestId()
public Set<Integer> affectedCacheGroups()
public abstract boolean start()
true if task started by this call.public String toString()
toString in class GridFutureAdapter<T>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023