Class GridCacheEvictionManager
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.GridCacheManagerAdapter
-
- org.apache.ignite.internal.processors.cache.GridCacheEvictionManager
-
- All Implemented Interfaces:
CacheEvictionManager,GridCacheManager
public class GridCacheEvictionManager extends GridCacheManagerAdapter implements CacheEvictionManager
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.cache.GridCacheManagerAdapter
cctx, log, starting
-
-
Constructor Summary
Constructors Constructor Description GridCacheEvictionManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbatchEvict(Collection<?> keys, @Nullable GridCacheVersion obsoleteVer)booleanevict(@Nullable GridCacheEntryEx entry, @Nullable GridCacheVersion obsoleteVer, boolean explicit, @Nullable CacheEntryPredicate[] filter)EvictionPolicygetEvictionPolicy()For test purposes.protected voidonKernalStop0(boolean cancel)voidprintMemoryStats()Prints memory statistics (sizes of internal data structures, etc.).voidstart0()protected voidstop0(boolean cancel, boolean destroy)voidtouch(GridCacheEntryEx e)voidtouch(IgniteTxEntry txEntry, boolean loc)-
Methods inherited from class org.apache.ignite.internal.processors.cache.GridCacheManagerAdapter
context, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStart0, onKernalStop, start, startInfo, stop, stopInfo, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.cache.GridCacheManager
onDisconnected, onKernalStart, onKernalStop, start, stop
-
-
-
-
Method Detail
-
start0
public void start0() throws IgniteCheckedException- Overrides:
start0in classGridCacheManagerAdapter- Throws:
IgniteCheckedException- If failed.
-
onKernalStop0
protected void onKernalStop0(boolean cancel)
- Overrides:
onKernalStop0in classGridCacheManagerAdapter- Parameters:
cancel- Cancel flag.
-
touch
public void touch(IgniteTxEntry txEntry, boolean loc)
- Specified by:
touchin interfaceCacheEvictionManager- Parameters:
txEntry- Transactional entry.loc- Local transaction flag.
-
touch
public void touch(GridCacheEntryEx e)
- Specified by:
touchin interfaceCacheEvictionManager- Parameters:
e- Entry for eviction policy notification.
-
evict
public boolean evict(@Nullable @Nullable GridCacheEntryEx entry, @Nullable @Nullable GridCacheVersion obsoleteVer, boolean explicit, @Nullable @Nullable CacheEntryPredicate[] filter) throws IgniteCheckedException- Specified by:
evictin interfaceCacheEvictionManager- Parameters:
entry- Entry to attempt to evict.obsoleteVer- Obsolete version.explicit-Trueif evict is called explicitly,falseif it's called from eviction policy.filter- Optional entry filter.- Returns:
Trueif entry was marked for eviction.- Throws:
IgniteCheckedException- In case of error.
-
batchEvict
public void batchEvict(Collection<?> keys, @Nullable @Nullable GridCacheVersion obsoleteVer) throws IgniteCheckedException
- Specified by:
batchEvictin interfaceCacheEvictionManager- Parameters:
keys- Keys to evict.obsoleteVer- Obsolete version.- Throws:
IgniteCheckedException- In case of error.
-
printMemoryStats
public void printMemoryStats()
Prints memory statistics (sizes of internal data structures, etc.). NOTE: this method is for testing and profiling purposes only.- Specified by:
printMemoryStatsin interfaceGridCacheManager- Overrides:
printMemoryStatsin classGridCacheManagerAdapter
-
getEvictionPolicy
public EvictionPolicy getEvictionPolicy()
For test purposes.
-
stop0
protected void stop0(boolean cancel, boolean destroy)- Overrides:
stop0in classGridCacheManagerAdapter- Parameters:
cancel- Cancel flag.destroy- Cache destroy flag.
-
-