public interface IgniteCacheOffheapManager
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IgniteCacheOffheapManager.CacheDataStore |
static interface |
IgniteCacheOffheapManager.OffheapInvokeClosure |
void start(GridCacheSharedContext ctx, CacheGroupContext grp) throws IgniteCheckedException
ctx - Context.grp - Cache group.IgniteCheckedException - If failed.void onCacheStarted(GridCacheContext cctx) throws IgniteCheckedException
cctx - Cache context.IgniteCheckedException - If failed.void onKernalStop()
void stopCache(int cacheId,
boolean destroy)
cacheId - Cache ID.destroy - Destroy data flag. Setting to true will remove all cache data.void stop()
void onPartitionCounterUpdated(int part,
long cntr)
part - Partition.cntr - Partition counter.void onPartitionInitialCounterUpdated(int part,
long cntr)
part - Partitioncntr - New initial counterlong lastUpdatedPartitionCounter(int part)
part - Partition ID.@Nullable CacheDataRow read(GridCacheMapEntry entry) throws IgniteCheckedException
entry - Cache entry.IgniteCheckedException - If failed.@Nullable CacheDataRow read(GridCacheContext cctx, KeyCacheObject key) throws IgniteCheckedException
cctx - Cache context.key - Key.IgniteCheckedException - If failed.IgniteCacheOffheapManager.CacheDataStore createCacheDataStore(int p) throws IgniteCheckedException
p - Partition.IgniteCheckedException - If failed.Iterable<IgniteCacheOffheapManager.CacheDataStore> cacheDataStores()
IgniteCacheOffheapManager.CacheDataStore dataStore(GridDhtLocalPartition part)
part - Partition.void destroyCacheDataStore(IgniteCacheOffheapManager.CacheDataStore store) throws IgniteCheckedException
store - Data store.IgniteCheckedException - If failed.boolean containsKey(GridCacheMapEntry entry)
boolean expire(GridCacheContext cctx, IgniteInClosure2X<GridCacheEntryEx,GridCacheVersion> c, int amount) throws IgniteCheckedException
cctx - Cache context.c - Closure.IgniteCheckedException - If failed.long expiredSize()
throws IgniteCheckedException
IgniteCheckedException - If failed to get number of pending entries.void invoke(GridCacheContext cctx, KeyCacheObject key, GridDhtLocalPartition part, IgniteCacheOffheapManager.OffheapInvokeClosure c) throws IgniteCheckedException
cctx - Cache context.key - Key.part - Partition.c - Tree update closure.IgniteCheckedException - If failed.void update(GridCacheContext cctx, KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, GridDhtLocalPartition part, @Nullable CacheDataRow oldRow) throws IgniteCheckedException
cctx - Cache context.key - Key.val - Value.ver - Version.expireTime - Expire time.oldRow - Old row if available.part - Partition.IgniteCheckedException - If failed.void remove(GridCacheContext cctx, KeyCacheObject key, int partId, GridDhtLocalPartition part) throws IgniteCheckedException
cctx - Cache context.key - Key.partId - Partition number.part - Partition.IgniteCheckedException - If failed.int onUndeploy(ClassLoader ldr)
ldr - Class loader.GridIterator<CacheDataRow> cacheIterator(int cacheId, boolean primary, boolean backup, AffinityTopologyVersion topVer) throws IgniteCheckedException
cacheId - Cache ID.primary - Primary entries flag.backup - Backup entries flag.topVer - Topology version.IgniteCheckedException - If failed.GridIterator<CacheDataRow> cachePartitionIterator(int cacheId, int part) throws IgniteCheckedException
cacheId - Cache ID.part - Partition.IgniteCheckedException - If failed.GridIterator<CacheDataRow> partitionIterator(int part) throws IgniteCheckedException
part - Partition number.IgniteCheckedException - If failed.IgniteRebalanceIterator rebalanceIterator(int part, AffinityTopologyVersion topVer, Long partCntr) throws IgniteCheckedException
part - Partition.topVer - Topology version.partCntr - Partition counter to get historical data if available.IgniteCheckedException - If failed.<K,V> GridCloseableIterator<javax.cache.Cache.Entry<K,V>> cacheEntriesIterator(GridCacheContext cctx, boolean primary, boolean backup, AffinityTopologyVersion topVer, boolean keepBinary) throws IgniteCheckedException
cctx - Cache context.primary - Primary entries flag.backup - Backup entries flag.topVer - Topology version.keepBinary - Keep binary flag.IgniteCheckedException - If failed.GridCloseableIterator<KeyCacheObject> cacheKeysIterator(int cacheId, int part) throws IgniteCheckedException
cacheId - Cache ID.part - Partition.IgniteCheckedException - If failed.long cacheEntriesCount(int cacheId,
boolean primary,
boolean backup,
AffinityTopologyVersion topVer)
throws IgniteCheckedException
cacheId - Cache ID.primary - Primary entries flag.backup - Backup entries flag.topVer - Topology version.IgniteCheckedException - If failed.void clearCache(GridCacheContext cctx, boolean readers)
cctx - Cache context.readers - True to clear readers.long cacheEntriesCount(int cacheId,
int part)
cacheId - Cache ID.part - Partition.long offHeapAllocatedSize()
GridAtomicLong globalRemoveId()
RootPage rootPageForIndex(int cacheId, String idxName) throws IgniteCheckedException
cacheId - Cache ID.idxName - Index name.IgniteCheckedException - If failed.void dropRootPageForIndex(int cacheId,
String idxName)
throws IgniteCheckedException
cacheId - Cache ID.idxName - Index name.IgniteCheckedException - If failed.ReuseList reuseListForIndex(String idxName) throws IgniteCheckedException
idxName - Index name.IgniteCheckedException - If failed.long cacheEntriesCount(int cacheId)
cacheId - Cache ID.int totalPartitionEntriesCount(int part)
part - Partition.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018