public class GridCacheOffheapManager extends IgniteCacheOffheapManagerImpl implements DbCheckpointListener
| Modifier and Type | Class and Description |
|---|---|
class |
GridCacheOffheapManager.GridCacheDataStore |
IgniteCacheOffheapManagerImpl.CacheDataStoreImplDbCheckpointListener.ContextIgniteCacheOffheapManager.CacheDataStore, IgniteCacheOffheapManager.OffheapInvokeClosure| Modifier and Type | Field and Description |
|---|---|
static GridCursor<CacheDataRow> |
EMPTY_CURSOR |
busyLock, ctx, grp, log, partDataStores, partStoreLock, PRELOAD_SIZE_UNDER_CHECKPOINT_LOCK| Constructor and Description |
|---|
GridCacheOffheapManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeCheckpointBegin(DbCheckpointListener.Context ctx)
Do some actions before checkpoint write lock.
|
protected IgniteCacheOffheapManager.CacheDataStore |
createCacheDataStore0(int p) |
protected void |
destroyCacheDataStore0(IgniteCacheOffheapManager.CacheDataStore store) |
void |
destroyPartitionStore(int grpId,
int partId)
Invalidates page memory for given partition.
|
void |
dropRootPageForIndex(int cacheId,
String idxName,
int segment) |
boolean |
expire(GridCacheContext cctx,
IgniteInClosure2X<GridCacheEntryEx,GridCacheVersion> c,
int amount) |
long |
expiredSize()
Gets the number of entries pending expire.
|
void |
findAndCleanupLostIndexesForStoppedCache(int cacheId) |
IndexStorage |
getIndexStorage()
Get internal IndexStorage.
|
protected @Nullable IgniteHistoricalIterator |
historicalIterator(CachePartitionPartialCountersMap partCntrs,
Set<Integer> missing) |
protected void |
initDataStructures() |
protected void |
initPendingTree(GridCacheContext cctx) |
long |
lastUpdatedPartitionCounter(int part)
Partition counter provider.
|
void |
onCheckpointBegin(DbCheckpointListener.Context ctx) |
void |
onMarkCheckpointBegin(DbCheckpointListener.Context ctx) |
void |
onPartitionCounterUpdated(int part,
long cntr)
Partition counter update callback.
|
void |
onPartitionInitialCounterUpdated(int part,
long start,
long delta)
Initial counter will be updated on state restore only
|
void |
preloadPartition(int part)
Preload a partition.
|
long |
restorePartitionStates(Map<GroupPartitionId,Integer> partitionRecoveryStates)
Pre-create partitions that resides in page memory or WAL and restores their state.
|
ReuseList |
reuseListForIndex(String idxName) |
RootPage |
rootPageForIndex(int cacheId,
String idxName,
int segment) |
void |
stop() |
cacheDataStores, cacheEntriesCount, cacheEntriesCount, cacheEntriesCount, cacheEntriesIterator, cacheIterator, cacheKeysIterator, cachePartitionIterator, clearCache, containsKey, createCacheDataStore, dataStore, dataStore, destroyCacheDataStore, globalRemoveId, invoke, mvccAllVersions, mvccAllVersionsCursor, mvccApplyHistoryIfAbsent, mvccApplyUpdate, mvccInitialValue, mvccLock, mvccRead, mvccRemove, mvccRemoveAll, mvccUpdate, mvccUpdateRowWithPreloadInfo, offHeapAllocatedSize, onCacheStarted, onKernalStop, onUndeploy, partitionIterator, read, read, rebalanceIterator, remove, reservedIterator, start, stopCache, storeEntries, totalPartitionEntriesCount, treeName, updatepublic static final GridCursor<CacheDataRow> EMPTY_CURSOR
protected void initPendingTree(GridCacheContext cctx) throws IgniteCheckedException
initPendingTree in class IgniteCacheOffheapManagerImplcctx - Cache context.IgniteCheckedException - If failed.protected void initDataStructures()
throws IgniteCheckedException
initDataStructures in class IgniteCacheOffheapManagerImplIgniteCheckedException - If failed.public IndexStorage getIndexStorage()
UpgradePendingTreeToPerPartitionTask for details.protected IgniteCacheOffheapManager.CacheDataStore createCacheDataStore0(int p) throws IgniteCheckedException
createCacheDataStore0 in class IgniteCacheOffheapManagerImplp - Partition.IgniteCheckedException - If failed.public void onCheckpointBegin(DbCheckpointListener.Context ctx) throws IgniteCheckedException
onCheckpointBegin in interface DbCheckpointListenerIgniteCheckedException - If failed.public void onMarkCheckpointBegin(DbCheckpointListener.Context ctx) throws IgniteCheckedException
onMarkCheckpointBegin in interface DbCheckpointListenerIgniteCheckedException - If failed.public void beforeCheckpointBegin(DbCheckpointListener.Context ctx) throws IgniteCheckedException
beforeCheckpointBegin in interface DbCheckpointListenerIgniteCheckedException - If failed.public long restorePartitionStates(Map<GroupPartitionId,Integer> partitionRecoveryStates) throws IgniteCheckedException
restorePartitionStates in interface IgniteCacheOffheapManagerrestorePartitionStates in class IgniteCacheOffheapManagerImplpartitionRecoveryStates - Partition recovery states.IgniteCheckedException - If failed.protected void destroyCacheDataStore0(IgniteCacheOffheapManager.CacheDataStore store) throws IgniteCheckedException
destroyCacheDataStore0 in class IgniteCacheOffheapManagerImplstore - Cache data store.IgniteCheckedException - If failed.public void destroyPartitionStore(int grpId,
int partId)
throws IgniteCheckedException
grpId - Group ID.partId - Partition ID.IgniteCheckedException - If destroy has failed.public void onPartitionCounterUpdated(int part,
long cntr)
onPartitionCounterUpdated in interface IgniteCacheOffheapManageronPartitionCounterUpdated in class IgniteCacheOffheapManagerImplpart - Partition.cntr - Partition counter.public void onPartitionInitialCounterUpdated(int part,
long start,
long delta)
onPartitionInitialCounterUpdated in interface IgniteCacheOffheapManageronPartitionInitialCounterUpdated in class IgniteCacheOffheapManagerImplpart - Partitionstart - Start.delta - Delta.public long lastUpdatedPartitionCounter(int part)
lastUpdatedPartitionCounter in interface IgniteCacheOffheapManagerlastUpdatedPartitionCounter in class IgniteCacheOffheapManagerImplpart - Partition ID.public RootPage rootPageForIndex(int cacheId, String idxName, int segment) throws IgniteCheckedException
rootPageForIndex in interface IgniteCacheOffheapManagerrootPageForIndex in class IgniteCacheOffheapManagerImplcacheId - Cache ID.idxName - Index name.segment - Segment.IgniteCheckedException - If failed.public void dropRootPageForIndex(int cacheId,
String idxName,
int segment)
throws IgniteCheckedException
dropRootPageForIndex in interface IgniteCacheOffheapManagerdropRootPageForIndex in class IgniteCacheOffheapManagerImplcacheId - Cache ID.idxName - Index name.IgniteCheckedException - If failed.public ReuseList reuseListForIndex(String idxName)
reuseListForIndex in interface IgniteCacheOffheapManagerreuseListForIndex in class IgniteCacheOffheapManagerImplidxName - Index name.public void stop()
stop in interface IgniteCacheOffheapManagerstop in class IgniteCacheOffheapManagerImpl@Nullable protected @Nullable IgniteHistoricalIterator historicalIterator(CachePartitionPartialCountersMap partCntrs, Set<Integer> missing) throws IgniteCheckedException
historicalIterator in class IgniteCacheOffheapManagerImplpartCntrs - Partition counters map.missing - Set of partitions need to populate if partition is missing or failed to reserve.IgniteCheckedException - If failed.public boolean expire(GridCacheContext cctx, IgniteInClosure2X<GridCacheEntryEx,GridCacheVersion> c, int amount) throws IgniteCheckedException
expire in interface IgniteCacheOffheapManagerexpire in class IgniteCacheOffheapManagerImplcctx - Cache context.c - Closure.amount - Limit of processed entries by single call, -1 for no limit.True if unprocessed expired entries remains.IgniteCheckedException - If failed.public long expiredSize()
throws IgniteCheckedException
expiredSize in interface IgniteCacheOffheapManagerexpiredSize in class IgniteCacheOffheapManagerImplIgniteCheckedException - If failed to get number of pending entries.public void preloadPartition(int part)
throws IgniteCheckedException
preloadPartition in interface IgniteCacheOffheapManagerpreloadPartition in class IgniteCacheOffheapManagerImplpart - Partition.IgniteCheckedException - If failed.public void findAndCleanupLostIndexesForStoppedCache(int cacheId)
throws IgniteCheckedException
cacheId - Which was stopped, but its data still presented.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020