public class IgniteCacheSnapshotManager<T extends SnapshotOperation> extends GridCacheSharedManagerAdapter implements IgniteChangeGlobalStateSupport
| Modifier and Type | Field and Description |
|---|---|
static String |
SNAPSHOT_RESTORE_STARTED_LOCK_FILENAME
Snapshot started lock filename.
|
static String |
TEMP_FILES_COMPLETENESS_MARKER
Temp files completeness marker.
|
cctx, diagnosticLog, log| Constructor and Description |
|---|
IgniteCacheSnapshotManager() |
context, isStopping, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStop, onKernalStop0, onReconnected, printMemoryStats, start, start0, startInfo, stop, stop0, stopInfo, toStringpublic static final String SNAPSHOT_RESTORE_STARTED_LOCK_FILENAME
public static final String TEMP_FILES_COMPLETENESS_MARKER
@Nullable public IgniteInternalFuture tryStartLocalSnapshotOperation(@Nullable DiscoveryEvent discoveryEvent, AffinityTopologyVersion topVer) throws IgniteCheckedException
discoveryEvent - Discovery event.topVer - topology version on the moment when this method was calledIgniteCheckedException - if failed@Nullable public IgniteInternalFuture startLocalSnapshotOperation(UUID initiatorNodeId, T snapshotOperation, AffinityTopologyVersion topVer) throws IgniteCheckedException
initiatorNodeId - Initiator node id.snapshotOperation - Snapshot operation.IgniteCheckedExceptionpublic IgniteFuture<?> onMarkCheckPointBegin(T snapshotOperation, PartitionAllocationMap map) throws IgniteCheckedException
snapshotOperation - current snapshot operation.map - (cacheId, partId) -> (lastAllocatedIndex, count)true if next operation must be snapshot, false if checkpoint must be executed.IgniteCheckedExceptionpublic boolean partitionsAreFrozen(CacheGroupContext grp)
public void restoreState()
throws IgniteCheckedException
IgniteCheckedExceptionpublic boolean snapshotOperationInProgress()
public void beforeCheckpointPageWritten()
public void afterCheckpointPageWritten()
public void beforePageWrite(FullPageId fullId)
fullId - Full id.public void onPageWrite(FullPageId fullId, ByteBuffer tmpWriteBuf, int writtenPages, int totalPages)
fullId - Full page id.tmpWriteBuf - bufferwrittenPages - Overall pages written, negative value means there is no progress trackedtotalPages - Overall pages count to be written, should be positivepublic void onCacheStop(GridCacheContext cctx)
cctx - Cctx.public void onCacheGroupStop(CacheGroupContext gctx)
gctx - Cctx.public void onChangeTrackerPage(Long page, FullPageId fullId, PageMemory pageMem) throws IgniteCheckedException
IgniteCheckedExceptionpublic void flushDirtyPageHandler(FullPageId fullId, ByteBuffer pageBuf, Integer tag) throws IgniteCheckedException
IgniteCheckedExceptionpublic void onActivate(GridKernalContext kctx) throws IgniteCheckedException
onActivate in interface IgniteChangeGlobalStateSupportkctx - Kernal context.IgniteCheckedException - If failed.public void onDeActivate(GridKernalContext kctx)
onDeActivate in interface IgniteChangeGlobalStateSupportkctx - Kernal context.public boolean needTxReadLogging()
True if TX READ records must be logged in WAL.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018