public class IgniteCacheOffheapManagerImpl extends Object implements IgniteCacheOffheapManager
| Modifier and Type | Class and Description |
|---|---|
protected class |
IgniteCacheOffheapManagerImpl.CacheDataRowStore |
protected class |
IgniteCacheOffheapManagerImpl.CacheDataStoreImpl |
protected static class |
IgniteCacheOffheapManagerImpl.CacheDataTree |
static class |
IgniteCacheOffheapManagerImpl.CacheIdAwareDataInnerIO |
static class |
IgniteCacheOffheapManagerImpl.CacheIdAwareDataLeafIO |
static class |
IgniteCacheOffheapManagerImpl.CacheIdAwarePendingEntryInnerIO |
static class |
IgniteCacheOffheapManagerImpl.CacheIdAwarePendingEntryLeafIO |
static class |
IgniteCacheOffheapManagerImpl.DataInnerIO |
static class |
IgniteCacheOffheapManagerImpl.DataLeafIO |
protected static class |
IgniteCacheOffheapManagerImpl.PendingEntriesTree |
static class |
IgniteCacheOffheapManagerImpl.PendingEntryInnerIO |
static class |
IgniteCacheOffheapManagerImpl.PendingEntryLeafIO |
IgniteCacheOffheapManager.CacheDataStore, IgniteCacheOffheapManager.OffheapInvokeClosure| Modifier and Type | Field and Description |
|---|---|
protected GridCacheSharedContext |
ctx |
protected CacheGroupContext |
grp |
protected IgniteLogger |
log |
protected ConcurrentMap<Integer,IgniteCacheOffheapManager.CacheDataStore> |
partDataStores |
protected IgniteCacheOffheapManagerImpl.PendingEntriesTree |
pendingEntries |
| Constructor and Description |
|---|
IgniteCacheOffheapManagerImpl() |
protected GridCacheSharedContext ctx
protected CacheGroupContext grp
protected IgniteLogger log
protected final ConcurrentMap<Integer,IgniteCacheOffheapManager.CacheDataStore> partDataStores
protected IgniteCacheOffheapManagerImpl.PendingEntriesTree pendingEntries
public GridAtomicLong globalRemoveId()
globalRemoveId in interface IgniteCacheOffheapManagerpublic void start(GridCacheSharedContext ctx, CacheGroupContext grp) throws IgniteCheckedException
start in interface IgniteCacheOffheapManagerctx - Context.grp - Cache group.IgniteCheckedException - If failed.public void onCacheStarted(GridCacheContext cctx) throws IgniteCheckedException
onCacheStarted in interface IgniteCacheOffheapManagercctx - Cache context.IgniteCheckedException - If failed.protected void initDataStructures()
throws IgniteCheckedException
IgniteCheckedException - If failed.public void stopCache(int cacheId,
boolean destroy)
stopCache in interface IgniteCacheOffheapManagercacheId - Cache ID.destroy - Destroy data flag.public void stop()
stop in interface IgniteCacheOffheapManagerpublic void onKernalStop()
onKernalStop in interface IgniteCacheOffheapManagerpublic IgniteCacheOffheapManager.CacheDataStore dataStore(GridDhtLocalPartition part)
dataStore in interface IgniteCacheOffheapManagerpart - Partition.public long cacheEntriesCount(int cacheId)
cacheEntriesCount in interface IgniteCacheOffheapManagercacheId - Cache ID.public int totalPartitionEntriesCount(int p)
totalPartitionEntriesCount in interface IgniteCacheOffheapManagerp - Partition.public long cacheEntriesCount(int cacheId,
boolean primary,
boolean backup,
AffinityTopologyVersion topVer)
throws IgniteCheckedException
cacheEntriesCount in interface IgniteCacheOffheapManagercacheId - Cache ID.primary - Primary entries flag.backup - Backup entries flag.topVer - Topology version.IgniteCheckedException - If failed.public long cacheEntriesCount(int cacheId,
int part)
cacheEntriesCount in interface IgniteCacheOffheapManagercacheId - Cache ID.part - Partition.public void invoke(GridCacheContext cctx, KeyCacheObject key, GridDhtLocalPartition part, IgniteCacheOffheapManager.OffheapInvokeClosure c) throws IgniteCheckedException
invoke in interface IgniteCacheOffheapManagercctx - Cache context.key - Key.part - Partition.c - Tree update closure.IgniteCheckedException - If failed.public void update(GridCacheContext cctx, KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, GridDhtLocalPartition part, @Nullable CacheDataRow oldRow) throws IgniteCheckedException
update in interface IgniteCacheOffheapManagercctx - Cache context.key - Key.val - Value.ver - Version.expireTime - Expire time.part - Partition.oldRow - Old row if available.IgniteCheckedException - If failed.public void updateIndexes(GridCacheContext cctx, KeyCacheObject key, GridDhtLocalPartition part) throws IgniteCheckedException
updateIndexes in interface IgniteCacheOffheapManagercctx - Cache context.key - Key.part - Partition.IgniteCheckedException - If failed.public void remove(GridCacheContext cctx, KeyCacheObject key, int partId, GridDhtLocalPartition part) throws IgniteCheckedException
remove in interface IgniteCacheOffheapManagercctx - Cache context.key - Key.partId - Partition number.part - Partition.IgniteCheckedException - If failed.@Nullable public CacheDataRow read(GridCacheMapEntry entry) throws IgniteCheckedException
read in interface IgniteCacheOffheapManagerentry - Cache entry.IgniteCheckedException - If failed.@Nullable public CacheDataRow read(GridCacheContext cctx, KeyCacheObject key) throws IgniteCheckedException
read in interface IgniteCacheOffheapManagercctx - Cache context.key - Key.IgniteCheckedException - If failed.public boolean containsKey(GridCacheMapEntry entry)
containsKey in interface IgniteCacheOffheapManagerpublic void onPartitionCounterUpdated(int part,
long cntr)
onPartitionCounterUpdated in interface IgniteCacheOffheapManagerpart - Partition.cntr - Partition counter.public void onPartitionInitialCounterUpdated(int part,
long cntr)
onPartitionInitialCounterUpdated in interface IgniteCacheOffheapManagerpart - Partitioncntr - New initial counterpublic long lastUpdatedPartitionCounter(int part)
lastUpdatedPartitionCounter in interface IgniteCacheOffheapManagerpart - Partition ID.public void clearCache(GridCacheContext cctx, boolean readers)
clearCache in interface IgniteCacheOffheapManagerreaders - True to clear readers.cctx - Cache context.public int onUndeploy(ClassLoader ldr)
onUndeploy in interface IgniteCacheOffheapManagerldr - Class loader.public long offHeapAllocatedSize()
offHeapAllocatedSize in interface IgniteCacheOffheapManagerpublic <K,V> GridCloseableIterator<javax.cache.Cache.Entry<K,V>> cacheEntriesIterator(GridCacheContext cctx, boolean primary, boolean backup, AffinityTopologyVersion topVer, boolean keepBinary) throws IgniteCheckedException
cacheEntriesIterator in interface IgniteCacheOffheapManagerprimary - True if need return primary entries.backup - True if need return backup entries.topVer - Topology version to use.cctx - Cache context.keepBinary - Keep binary flag.IgniteCheckedException - If failed.public GridCloseableIterator<KeyCacheObject> cacheKeysIterator(int cacheId, int part) throws IgniteCheckedException
cacheKeysIterator in interface IgniteCacheOffheapManagercacheId - Cache ID.part - Partition.IgniteCheckedException - If failed.public GridIterator<CacheDataRow> cacheIterator(int cacheId, boolean primary, boolean backups, AffinityTopologyVersion topVer) throws IgniteCheckedException
cacheIterator in interface IgniteCacheOffheapManagercacheId - Cache ID.primary - Primary entries flag.backups - Backup entries flag.topVer - Topology version.IgniteCheckedException - If failed.public GridIterator<CacheDataRow> cachePartitionIterator(int cacheId, int part) throws IgniteCheckedException
cachePartitionIterator in interface IgniteCacheOffheapManagercacheId - Cache ID.part - Partition.IgniteCheckedException - If failed.public GridIterator<CacheDataRow> partitionIterator(int part) throws IgniteCheckedException
partitionIterator in interface IgniteCacheOffheapManagerpart - Partition number.IgniteCheckedException - If failed.public RootPage rootPageForIndex(int cacheId, String idxName) throws IgniteCheckedException
rootPageForIndex in interface IgniteCacheOffheapManagercacheId - Cache ID.idxName - Index name.IgniteCheckedException - If failed.public void dropRootPageForIndex(int cacheId,
String idxName)
throws IgniteCheckedException
dropRootPageForIndex in interface IgniteCacheOffheapManagercacheId - Cache ID.idxName - Index name.IgniteCheckedException - If failed.public ReuseList reuseListForIndex(String idxName)
reuseListForIndex in interface IgniteCacheOffheapManageridxName - Index name.public IgniteRebalanceIterator rebalanceIterator(int part, AffinityTopologyVersion topVer, Long partCntr) throws IgniteCheckedException
rebalanceIterator in interface IgniteCacheOffheapManagerpart - Partition.topVer - Topology version.partCntr - Partition counter to get historical data if available.IgniteCheckedException - If failed.public final IgniteCacheOffheapManager.CacheDataStore createCacheDataStore(int p) throws IgniteCheckedException
createCacheDataStore in interface IgniteCacheOffheapManagerp - Partition.IgniteCheckedException - If failed.protected IgniteCacheOffheapManager.CacheDataStore createCacheDataStore0(int p) throws IgniteCheckedException
p - Partition.IgniteCheckedException - If failed.public Iterable<IgniteCacheOffheapManager.CacheDataStore> cacheDataStores()
cacheDataStores in interface IgniteCacheOffheapManagerpublic final void destroyCacheDataStore(IgniteCacheOffheapManager.CacheDataStore store) throws IgniteCheckedException
destroyCacheDataStore in interface IgniteCacheOffheapManagerstore - Data store.IgniteCheckedException - If failed.protected void destroyCacheDataStore0(IgniteCacheOffheapManager.CacheDataStore store) throws IgniteCheckedException
store - Cache data store.IgniteCheckedException - If failed.protected final String treeName(int p)
p - Partition.public boolean expire(GridCacheContext cctx, IgniteInClosure2X<GridCacheEntryEx,GridCacheVersion> c, int amount) throws IgniteCheckedException
expire in interface IgniteCacheOffheapManagercctx - Cache context.c - Closure.IgniteCheckedException - If failed.public long expiredSize()
throws IgniteCheckedException
expiredSize in interface IgniteCacheOffheapManagerIgniteCheckedException - If failed to get number of pending entries.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017