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.
|
cctx, diagnosticLog, log| Constructor and Description |
|---|
IgniteCacheSnapshotManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCheckpointPageWritten() |
void |
beforeCheckpointPageWritten() |
void |
beforePageWrite(FullPageId fullId) |
void |
flushDirtyPageHandler(FullPageId fullId,
ByteBuffer pageBuf,
Integer tag) |
void |
onActivate(GridKernalContext kctx)
Called when cluster performing activation.
|
void |
onCacheGroupStop(CacheGroupContext gctx) |
void |
onCacheStop(GridCacheContext cctx) |
void |
onChangeTrackerPage(Long page,
FullPageId fullId,
PageMemory pageMem) |
void |
onDeActivate(GridKernalContext kctx)
Called when cluster performing deactivation.
|
boolean |
onMarkCheckPointBegin(T snapshotOperation,
PartitionAllocationMap map) |
void |
onPageWrite(FullPageId fullId,
ByteBuffer tmpWriteBuf,
int writtenPages,
int totalPages) |
void |
restoreState() |
boolean |
snapshotOperationInProgress() |
IgniteInternalFuture |
startLocalSnapshotOperation(UUID initiatorNodeId,
T snapshotOperation) |
IgniteInternalFuture |
tryStartLocalSnapshotOperation(DiscoveryEvent discoveryEvent)
Try to start local snapshot operation if it's required by discovery event.
|
context, isStopping, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStop, onKernalStop0, printMemoryStats, start, start0, startInfo, stop, stop0, stopInfo, toStringpublic static final String SNAPSHOT_RESTORE_STARTED_LOCK_FILENAME
@Nullable public IgniteInternalFuture tryStartLocalSnapshotOperation(@Nullable DiscoveryEvent discoveryEvent) throws IgniteCheckedException
discoveryEvent - Discovery event.IgniteCheckedException@Nullable public IgniteInternalFuture startLocalSnapshotOperation(UUID initiatorNodeId, T snapshotOperation) throws IgniteCheckedException
initiatorNodeId - Initiator node id.snapshotOperation - Snapshot operation.IgniteCheckedExceptionpublic boolean 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 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.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017