public class GridCacheDatabaseSharedManager extends IgniteCacheDatabaseSharedManager
| Modifier and Type | Class and Description |
|---|---|
class |
GridCacheDatabaseSharedManager.Checkpointer |
class |
GridCacheDatabaseSharedManager.CheckpointHistory
Checkpoint history.
|
| Modifier and Type | Field and Description |
|---|---|
static Long |
DFLT_CHECKPOINTING_PAGE_BUFFER_SIZE
Default checkpointing page buffer size (may be adjusted by Ignite).
|
static String |
IGNITE_PDS_CHECKPOINT_TEST_SKIP_SYNC |
dfltMemPlc, memMetricsMap, memPlcMapcctx, diagnosticLog, log| Constructor and Description |
|---|
GridCacheDatabaseSharedManager(GridKernalContext ctx) |
buildAllocPath, buildPath, dumpStatistics, ensureFreeSpace, freeList, initPageMemoryPolicies, memoryMetrics, memoryMetrics, memoryPolicies, memoryPolicy, pageSize, prepareCachesStop, reuseList, setPageSize, stop0, systemMemoryPolicyNamecontext, isStopping, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStop, printMemoryStats, start, startInfo, stop, stopInfo, toStringpublic static final String IGNITE_PDS_CHECKPOINT_TEST_SKIP_SYNC
public static final Long DFLT_CHECKPOINTING_PAGE_BUFFER_SIZE
public GridCacheDatabaseSharedManager(GridKernalContext ctx)
ctx - Kernal context.public GridCacheDatabaseSharedManager.Checkpointer getCheckpointer()
public IgniteInternalFuture<Void> enableCheckpoints(boolean enable)
protected void start0()
throws IgniteCheckedException
start0 in class IgniteCacheDatabaseSharedManagerIgniteCheckedException - If failed.protected void initPageMemoryDataStructures(MemoryConfiguration dbCfg) throws IgniteCheckedException
initPageMemoryDataStructures in class IgniteCacheDatabaseSharedManagerdbCfg - Database config.IgniteCheckedException - If failed.public void onActivate(GridKernalContext ctx) throws IgniteCheckedException
onActivate in interface IgniteChangeGlobalStateSupportonActivate in class IgniteCacheDatabaseSharedManagerctx - Kernal context.IgniteCheckedException - If failed.public void onDeActivate(GridKernalContext kctx)
onDeActivate in interface IgniteChangeGlobalStateSupportonDeActivate in class IgniteCacheDatabaseSharedManagerkctx - Kernal context.public void readCheckpointAndRestoreMemory(List<DynamicCacheDescriptor> cachesToStart) throws IgniteCheckedException
readCheckpointAndRestoreMemory in class IgniteCacheDatabaseSharedManagercachesToStart - Started caches.IgniteCheckedException - If failed.public void lock()
throws IgniteCheckedException
lock in class IgniteCacheDatabaseSharedManagerIgniteCheckedExceptionpublic void unLock()
unLock in class IgniteCacheDatabaseSharedManagerprotected void onKernalStop0(boolean cancel)
onKernalStop0 in class GridCacheSharedManagerAdaptercancel - Cancel flag.protected PageMemory createPageMemory(DirectMemoryProvider memProvider, MemoryConfiguration memCfg, MemoryPolicyConfiguration plcCfg, MemoryMetricsImpl memMetrics)
createPageMemory in class IgniteCacheDatabaseSharedManagermemProvider - Memory provider.memCfg - Memory configuartion.plcCfg - Memory policy configuration.memMetrics - MemoryMetrics to collect memory usage metrics.protected void checkPolicyEvictionProperties(MemoryPolicyConfiguration plcCfg, MemoryConfiguration dbCfg) throws IgniteCheckedException
checkPolicyEvictionProperties in class IgniteCacheDatabaseSharedManagerplcCfg - MemoryPolicyConfiguration to validate.dbCfg - Memory configuration.IgniteCheckedException - If config is invalid.public void beforeExchange(GridDhtPartitionsExchangeFuture fut) throws IgniteCheckedException
beforeExchange in class IgniteCacheDatabaseSharedManagerfut - Before exchange for the given discovery event.IgniteCheckedException@Nullable public IgniteInternalFuture indexRebuildFuture(int cacheId)
indexRebuildFuture in class IgniteCacheDatabaseSharedManagerpublic boolean persistenceEnabled()
persistenceEnabled in class IgniteCacheDatabaseSharedManagerpublic void onCacheGroupsStopped(Collection<IgniteBiTuple<CacheGroupContext,Boolean>> stoppedGrps)
onCacheGroupsStopped in class IgniteCacheDatabaseSharedManagerstoppedGrps - A collection of tuples (cache group, destroy flag).public void checkpointReadLock()
checkpointReadLock in class IgniteCacheDatabaseSharedManagerpublic boolean checkpointLockIsHeldByThread()
checkpointLockIsHeldByThread in interface CheckpointLockStateCheckercheckpointLockIsHeldByThread in class IgniteCacheDatabaseSharedManagerpublic void checkpointReadUnlock()
checkpointReadUnlock in class IgniteCacheDatabaseSharedManagerpublic Map<Integer,Map<Integer,Long>> reserveHistoryForExchange()
reserveHistoryForExchange in class IgniteCacheDatabaseSharedManagerpublic void releaseHistoryForExchange()
releaseHistoryForExchange in class IgniteCacheDatabaseSharedManagerpublic boolean reserveHistoryForPreloading(int grpId,
int partId,
long cntr)
reserveHistoryForPreloading in class IgniteCacheDatabaseSharedManagergrpId - Cache group ID.partId - Partition Id.cntr - Update counter.public void releaseHistoryForPreloading()
releaseHistoryForPreloading in class IgniteCacheDatabaseSharedManagerpublic Map<T2<Integer,Integer>,T2<Long,WALPointer>> reservedForPreloading()
@Nullable public IgniteInternalFuture wakeupForCheckpoint(String reason)
wakeupForCheckpoint in class IgniteCacheDatabaseSharedManagerpublic void waitForCheckpoint(String reason) throws IgniteCheckedException
waitForCheckpoint in class IgniteCacheDatabaseSharedManagerIgniteCheckedException - If failed.@Nullable public WALPointer searchPartitionCounter(int grpId, int part, @Nullable Long partCntrSince)
grpId - Cache group ID.part - Partition ID.partCntrSince - Partition counter or null to search for minimal counter.null if failed to search.public GridCacheDatabaseSharedManager.CheckpointHistory checkpointHistory()
public File checkpointDirectory()
public void addCheckpointListener(DbCheckpointListener lsnr)
lsnr - Listener.public void removeCheckpointListener(DbCheckpointListener lsnr)
lsnr - Listener.public PersistenceMetrics persistentStoreMetrics()
persistentStoreMetrics in class IgniteCacheDatabaseSharedManagernull otherwise.public PersistenceMetricsImpl persistentStoreMetricsImpl()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017