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()
long restorePartitionStates(Map<GroupPartitionId,Integer> partitionRecoveryStates) throws IgniteCheckedException
partitionRecoveryStates - Partition recovery states.IgniteCheckedException - If failed.void onPartitionCounterUpdated(int part,
long cntr)
part - Partition.cntr - Partition counter.void onPartitionInitialCounterUpdated(int part,
long start,
long delta)
part - Partitionstart - Start.delta - Delta.long lastUpdatedPartitionCounter(int part)
part - Partition ID.@Nullable @Nullable CacheDataRow read(GridCacheMapEntry entry) throws IgniteCheckedException
entry - Cache entry.IgniteCheckedException - If failed.@Nullable @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.amount - Limit of processed entries by single call, -1 for no limit.True if unprocessed expired entries remains.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.@Nullable @Nullable CacheDataRow mvccRead(GridCacheContext cctx, KeyCacheObject key, MvccSnapshot mvccSnapshot) throws IgniteCheckedException
cctx - Cache context.key - Key.mvccSnapshot - MVCC snapshot.IgniteCheckedException - If failed.List<IgniteBiTuple<Object,MvccVersion>> mvccAllVersions(GridCacheContext cctx, KeyCacheObject key) throws IgniteCheckedException
cctx - Cache context.key - Key.IgniteCheckedException - If failed.GridCursor<CacheDataRow> mvccAllVersionsCursor(GridCacheContext cctx, KeyCacheObject key, Object x) throws IgniteCheckedException
cctx - Cache context.key - Key.x - Implementation specific argument, null always means that we need to return full detached data row.IgniteCheckedException - If failed.boolean mvccInitialValue(GridCacheMapEntry entry, @Nullable @Nullable CacheObject val, GridCacheVersion ver, long expireTime, MvccVersion mvccVer, MvccVersion newMvccVer) throws IgniteCheckedException
entry - Entry.val - Value.ver - Version.expireTime - Expire time.mvccVer - MVCC version.newMvccVer - New MVCC version.True if value was inserted.IgniteCheckedException - If failed.boolean mvccApplyHistoryIfAbsent(GridCacheMapEntry entry, List<GridCacheMvccEntryInfo> hist) throws IgniteCheckedException
entry - Entry to update.hist - Full entry history.True if history applied successfully, False otherwise.IgniteCheckedExceptionMvccUpdateResult mvccUpdate(GridCacheMapEntry entry, CacheObject val, GridCacheVersion ver, long expireTime, MvccSnapshot mvccSnapshot, boolean primary, boolean needHist, boolean noCreate, boolean needOldVal, @Nullable @Nullable CacheEntryPredicate filter, boolean retVal, boolean keepBinary, javax.cache.processor.EntryProcessor entryProc, Object[] invokeArgs) throws IgniteCheckedException
entry - Entry.val - Value.ver - Cache version.expireTime - Expire time.mvccSnapshot - MVCC snapshot.primary - True if on primary node.needHist - Flag to collect history.noCreate - Flag indicating that row should not be created if absent.needOldVal - True if need old value.filter - Filter.retVal - Flag to return previous value.keepBinary - Keep binary flag.entryProc - Entry processor.invokeArgs - Entry processor invoke arguments.IgniteCheckedException - If failed.@Nullable @Nullable MvccUpdateResult mvccRemove(GridCacheMapEntry entry, MvccSnapshot mvccSnapshot, boolean primary, boolean needHist, boolean needOldVal, @Nullable @Nullable CacheEntryPredicate filter, boolean retVal) throws IgniteCheckedException
entry - Entry.mvccSnapshot - MVCC snapshot.primary - True if on primary node.needHist - Flag to collect history.needOldVal - True if need old value.filter - Filter.retVal - Flag to return previous value.IgniteCheckedException - If failed.@Nullable @Nullable MvccUpdateResult mvccLock(GridCacheMapEntry entry, MvccSnapshot mvccSnapshot) throws IgniteCheckedException
entry - Entry.mvccSnapshot - MVCC snapshot.IgniteCheckedException - If failed.boolean mvccUpdateRowWithPreloadInfo(GridCacheMapEntry entry, @Nullable @Nullable CacheObject val, GridCacheVersion ver, long expireTime, MvccVersion mvccVer, MvccVersion newMvccVer, byte mvccTxState, byte newMvccTxState) throws IgniteCheckedException
entry - Entry.val - Value.ver - Version.mvccVer - MVCC version.newMvccVer - New MVCC version.True if value was inserted.IgniteCheckedException - If failed.void mvccRemoveAll(GridCacheMapEntry entry) throws IgniteCheckedException
entry - Entry.IgniteCheckedException - If failed.void update(GridCacheContext cctx, KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, GridDhtLocalPartition part, @Nullable @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 mvccApplyUpdate(GridCacheContext cctx, KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, GridDhtLocalPartition part, MvccVersion mvccVer) throws IgniteCheckedException
cctx - Cache context.key - Key.val - Value.ver - Version.expireTime - Expire time.part - Partition.mvccVer - Mvcc version.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, @Nullable @Nullable MvccSnapshot mvccSnapshot, Boolean dataPageScanEnabled) throws IgniteCheckedException
cacheId - Cache ID.primary - Primary entries flag.backup - Backup entries flag.topVer - Topology version.mvccSnapshot - MVCC snapshot.dataPageScanEnabled - Flag to enable data page scan.IgniteCheckedException - If failed.GridIterator<CacheDataRow> cachePartitionIterator(int cacheId, int part, @Nullable @Nullable MvccSnapshot mvccSnapshot, Boolean dataPageScanEnabled) throws IgniteCheckedException
cacheId - Cache ID.part - Partition.mvccSnapshot - MVCC snapshot.dataPageScanEnabled - Flag to enable data page scan.IgniteCheckedException - If failed.GridIterator<CacheDataRow> partitionIterator(int part) throws IgniteCheckedException
part - Partition number.IgniteCheckedException - If failed.GridCloseableIterator<CacheDataRow> reservedIterator(int part, AffinityTopologyVersion topVer) throws IgniteCheckedException
part - Partition number.topVer - Topology version.IgniteCheckedException - If failed.IgniteRebalanceIterator rebalanceIterator(IgniteDhtDemandedPartitionsMap parts, AffinityTopologyVersion topVer) throws IgniteCheckedException
parts - Partitions.IgniteCheckedException - If failed.<K,V> GridCloseableIterator<javax.cache.Cache.Entry<K,V>> cacheEntriesIterator(GridCacheContext cctx, boolean primary, boolean backup, AffinityTopologyVersion topVer, boolean keepBinary, @Nullable @Nullable MvccSnapshot mvccSnapshot, Boolean dataPageScanEnabled) throws IgniteCheckedException
cctx - Cache context.primary - True if need to return primary entries.backup - True if need to return backup entries.topVer - Topology version.keepBinary - Keep binary flag.mvccSnapshot - MVCC snapshot.dataPageScanEnabled - Flag to enable data page scan.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 storeEntries(int partId,
Iterator<GridCacheEntryInfo> infos,
IgnitePredicateX<CacheDataRow> initPred)
throws IgniteCheckedException
partId - Partition number.infos - Entry infos.initPred - Applied to all created rows. Each row that not matches the predicate is removed.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, int segment) throws IgniteCheckedException
cacheId - Cache ID.idxName - Index name.segment - Segment.IgniteCheckedException - If failed.void dropRootPageForIndex(int cacheId,
String idxName,
int segment)
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.long totalPartitionEntriesCount(int part)
part - Partition.void preloadPartition(int part)
throws IgniteCheckedException
part - Partition.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020