public class CreateDumpFutureTask extends AbstractCreateSnapshotFutureTask implements DumpEntryChangeListener
DumpEntry written one by one.| Modifier and Type | Field and Description |
|---|---|
protected GridCacheSharedContext<?,?> |
cctx
Shared context.
|
static String |
DUMP_FILE_EXT
Dump files name.
|
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 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.
|
closeFut, processed| Constructor and Description |
|---|
CreateDumpFutureTask(GridCacheSharedContext<?,?> cctx,
UUID srcNodeId,
UUID reqId,
String dumpName,
File dumpDir,
FileIOFactory ioFactory,
BasicRateLimiter rateLimiter,
SnapshotSender snpSndr,
Map<Integer,Set<Integer>> parts,
boolean compress,
boolean encrypt) |
| Modifier and Type | Method and Description |
|---|---|
Set<Integer> |
affectedCacheGroups() |
void |
beforeChange(GridCacheContext cctx,
KeyCacheObject key,
CacheObject val,
long expireTime,
GridCacheVersion ver) |
protected CompletableFuture<Void> |
closeAsync() |
@Nullable Serializable |
encryptionKey() |
long |
processedSize() |
protected void |
processPartitions() |
UUID |
requestId() |
protected List<CompletableFuture<Void>> |
saveCacheConfigs() |
protected List<CompletableFuture<Void>> |
saveGroup(int grp,
Set<Integer> grpParts) |
String |
snapshotName() |
UUID |
sourceNodeId() |
boolean |
start()
Initiates snapshot task.
|
String |
toString() |
acceptException, cancel, runAsync, saveSnapshotData, stoppingchain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, listen, logger, onCancelled, onDone, onDone, onDone, onDone, onDone, reset, resultpublic static final String DUMP_FILE_EXT
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
public CreateDumpFutureTask(GridCacheSharedContext<?,?> cctx, UUID srcNodeId, UUID reqId, String dumpName, File dumpDir, FileIOFactory ioFactory, BasicRateLimiter rateLimiter, SnapshotSender snpSndr, Map<Integer,Set<Integer>> parts, boolean compress, boolean encrypt)
cctx - Cache context.srcNodeId - Node id which cause snapshot task creation.reqId - Snapshot operation request ID.dumpName - Dump name.ioFactory - IO factory.snpSndr - Snapshot sender.rateLimiter - Dump transfer rate limiter.parts - Parts to dump.compress - If true then compress partition files.encrypt - If true then content of dump encrypted.public boolean start()
true if task started by this call.protected void processPartitions()
throws IgniteCheckedException
processPartitions in class AbstractCreateSnapshotFutureTaskIgniteCheckedExceptionprotected List<CompletableFuture<Void>> saveCacheConfigs()
saveCacheConfigs in class AbstractCreateSnapshotFutureTaskprotected List<CompletableFuture<Void>> saveGroup(int grp, Set<Integer> grpParts)
saveGroup in class AbstractCreateSnapshotFutureTaskpublic void beforeChange(GridCacheContext cctx, KeyCacheObject key, CacheObject val, long expireTime, GridCacheVersion ver)
beforeChange in interface DumpEntryChangeListenercctx - Cache context.key - Key.val - Value BEFORE change.expireTime - Expire time BEFORE change.ver - Version of entry BEFORE change.protected CompletableFuture<Void> closeAsync()
closeAsync in class AbstractCreateSnapshotFutureTaskpublic long processedSize()
@Nullable public @Nullable Serializable encryptionKey()
public String snapshotName()
public UUID sourceNodeId()
public UUID requestId()
public Set<Integer> affectedCacheGroups()
public String toString()
toString in class GridFutureAdapter<T>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023