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, hasPendingEntries, log, nextCleanTime, partDataStores, partStoreLock, UNWIND_THROTTLING_TIMEOUT| Constructor and Description |
|---|
GridCacheOffheapManager() |
cacheDataStores, cacheEntriesCount, cacheEntriesCount, cacheEntriesCount, cacheEntriesIterator, cacheIterator, cacheKeysIterator, cachePartitionIterator, clearCache, containsKey, createCacheDataStore, dataStore, dataStore, destroyCacheDataStore, globalRemoveId, invoke, mvccAllVersions, mvccAllVersionsCursor, mvccApplyUpdate, mvccInitialValue, mvccInitialValueIfAbsent, mvccLock, mvccRead, mvccRemove, mvccRemoveAll, mvccRemoveNative, mvccUpdate, mvccUpdateNative, mvccUpdateRowWithPreloadInfo, offHeapAllocatedSize, onCacheStarted, onKernalStop, onUndeploy, partitionIterator, read, read, rebalanceIterator, remove, reservedIterator, start, stopCache, totalPartitionEntriesCount, treeName, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcachePartitionIterator, mvccInitialValuepublic 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.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 cntr)
onPartitionInitialCounterUpdated in interface IgniteCacheOffheapManageronPartitionInitialCounterUpdated in class IgniteCacheOffheapManagerImplpart - Partitioncntr - New initial counterpublic long lastUpdatedPartitionCounter(int part)
lastUpdatedPartitionCounter in interface IgniteCacheOffheapManagerlastUpdatedPartitionCounter in class IgniteCacheOffheapManagerImplpart - Partition ID.public RootPage rootPageForIndex(int cacheId, String idxName) throws IgniteCheckedException
rootPageForIndex in interface IgniteCacheOffheapManagerrootPageForIndex in class IgniteCacheOffheapManagerImplcacheId - Cache ID.idxName - Index name.IgniteCheckedException - If failed.public void dropRootPageForIndex(int cacheId,
String idxName)
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 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.IgniteCheckedExceptionpublic 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.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019