public class GridCacheOffheapManager extends IgniteCacheOffheapManagerImpl implements DbCheckpointListener
IgniteCacheOffheapManagerImpl.CacheDataStoreImplDbCheckpointListener.ContextIgniteCacheOffheapManager.CacheDataStore, IgniteCacheOffheapManager.OffheapInvokeClosurectx, grp, log, partDataStores, partStoreLock, pendingEntries| Constructor and Description |
|---|
GridCacheOffheapManager() |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected org.apache.ignite.internal.processors.cache.persistence.GridCacheOffheapManager.WALHistoricalIterator |
historicalIterator(CachePartitionPartialCountersMap partCntrs,
Set<Integer> missing) |
protected void |
initDataStructures() |
long |
lastUpdatedPartitionCounter(int part)
Partition counter provider.
|
void |
onCacheStarted(GridCacheContext cctx) |
void |
onCheckpointBegin(DbCheckpointListener.Context ctx) |
void |
onPartitionCounterUpdated(int part,
long cntr)
Partition counter update callback.
|
void |
onPartitionInitialCounterUpdated(int part,
long cntr)
Initial counter will be updated on state restore only
|
IgniteCacheOffheapManager.CacheDataStore |
recreateCacheDataStore(IgniteCacheOffheapManager.CacheDataStore store)
Destroys given
store and creates new with the same update counters as in given. |
ReuseList |
reuseListForIndex(String idxName) |
RootPage |
rootPageForIndex(int cacheId,
String idxName) |
void |
stop() |
cacheDataStores, cacheEntriesCount, cacheEntriesCount, cacheEntriesCount, cacheEntriesIterator, cacheIterator, cacheKeysIterator, cachePartitionIterator, clearCache, containsKey, createCacheDataStore, dataStore, destroyCacheDataStore, expire, expiredSize, globalRemoveId, invoke, offHeapAllocatedSize, onKernalStop, onUndeploy, partitionIterator, read, read, rebalanceIterator, remove, reservedIterator, start, stopCache, totalPartitionEntriesCount, treeName, updateprotected void initDataStructures()
throws IgniteCheckedException
initDataStructures in class IgniteCacheOffheapManagerImplIgniteCheckedException - If failed.public void onCacheStarted(GridCacheContext cctx) throws IgniteCheckedException
onCacheStarted in interface IgniteCacheOffheapManageronCacheStarted in class IgniteCacheOffheapManagerImplcctx - Cache context.IgniteCheckedException - If failed.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 IgniteCacheOffheapManager.CacheDataStore recreateCacheDataStore(IgniteCacheOffheapManager.CacheDataStore store) throws IgniteCheckedException
store and creates new with the same update counters as in given.store - Store to destroy.IgniteCheckedException - If 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 org.apache.ignite.internal.processors.cache.persistence.GridCacheOffheapManager.WALHistoricalIterator 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
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018