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 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,
String snpName,
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) |
boolean |
cancel()
Default no-op implementation that always returns
false. |
String |
snapshotName() |
UUID |
sourceNodeId() |
boolean |
start()
Initiates snapshot task.
|
String |
toString() |
chain, chain, 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 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, String snpName, 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.snpName - Unique identifier of snapshot process.tmpWorkDir - Working directory for intermediate snapshot results.ioFactory - Factory to working with snapshot files.snpSndr - Factory which produces snapshot receiver instance.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 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.12.0 Release Date : January 10 2022