public class SnapshotResponseRemoteFutureTask extends GridFutureAdapter<T>
| Modifier and Type | Field and Description |
|---|---|
protected GridCacheSharedContext<?,?> |
cctx
Shared context.
|
protected AtomicReference<Throwable> |
err
An exception which has been occurred during snapshot processing.
|
protected FileIOFactory |
ioFactory
IO factory which will be used for creating snapshot delta-writers.
|
protected IgniteLogger |
log
Ignite logger.
|
protected Map<Integer,Set<Integer>> |
parts
Partition to be processed.
|
protected UUID |
reqId
Snapshot operation request ID.
|
protected String |
snpName
Unique identifier of snapshot process.
|
protected org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotSender |
snpSndr
Snapshot data sender.
|
protected UUID |
srcNodeId
Node id which cause snapshot operation.
|
protected File |
tmpSnpWorkDir
Snapshot working directory on file system.
|
| Constructor and Description |
|---|
SnapshotResponseRemoteFutureTask(GridCacheSharedContext<?,?> cctx,
UUID srcNodeId,
UUID reqId,
String snpName,
String snpPath,
File tmpWorkDir,
FileIOFactory ioFactory,
org.apache.ignite.internal.processors.cache.persistence.snapshot.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. |
UUID |
requestId() |
String |
snapshotName() |
UUID |
sourceNodeId() |
boolean |
start()
Initiates snapshot task.
|
String |
toString() |
chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, onDone, reset, resultprotected final GridCacheSharedContext<?,?> cctx
protected final IgniteLogger log
protected final UUID srcNodeId
protected final UUID reqId
protected final String snpName
protected final File tmpSnpWorkDir
protected final FileIOFactory ioFactory
@GridToStringExclude protected final org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotSender snpSndr
protected final AtomicReference<Throwable> err
public SnapshotResponseRemoteFutureTask(GridCacheSharedContext<?,?> cctx, UUID srcNodeId, UUID reqId, String snpName, String snpPath, File tmpWorkDir, FileIOFactory ioFactory, org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotSender snpSndr, Map<Integer,Set<Integer>> parts)
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.tmpWorkDir - Working directory for intermediate snapshot results.ioFactory - Factory to working with snapshot files.snpSndr - Factory which produces snapshot receiver instance.parts - Partition to be processed.public boolean start()
true if task started by this call.public void acceptException(Throwable th)
th - An exception which occurred during snapshot processing.public String snapshotName()
public UUID sourceNodeId()
public UUID requestId()
public Set<Integer> affectedCacheGroups()
public 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<T>cancel in class GridFutureAdapter<T>True if future was canceled (i.e. was not finished prior to this call).public String toString()
toString in class GridFutureAdapter<T>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023