Class NoOpPageEvictionTracker
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.evict.NoOpPageEvictionTracker
-
- All Implemented Interfaces:
PageEvictionTracker,LifecycleAware
public class NoOpPageEvictionTracker extends Object implements PageEvictionTracker
-
-
Constructor Summary
Constructors Constructor Description NoOpPageEvictionTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevictDataPage()Evicts one data page.booleanevictionRequired()Check if page eviction is required according to the configured policy.voidforgetPage(long pageId)Call this method when last entry is removed from data page.voidstart()Starts grid component, called on grid start.voidstop()Stops grid component, called on grid shutdown.voidtouchPage(long pageId)Call this method when data page is accessed.
-
-
-
Method Detail
-
start
public void start() throws IgniteExceptionStarts grid component, called on grid start.- Specified by:
startin interfaceLifecycleAware- Throws:
IgniteException- If failed.
-
stop
public void stop() throws IgniteExceptionStops grid component, called on grid shutdown.- Specified by:
stopin interfaceLifecycleAware- Throws:
IgniteException- If failed.
-
touchPage
public void touchPage(long pageId) throws IgniteCheckedExceptionCall this method when data page is accessed.- Specified by:
touchPagein interfacePageEvictionTracker- Parameters:
pageId- Page id.- Throws:
IgniteCheckedException- In case of page memory error.
-
evictDataPage
public void evictDataPage() throws IgniteCheckedExceptionEvicts one data page. In most cases, all entries will be removed from the page. Method guarantees removing at least one entry from "evicted" data page. Removing all entries may be not possible, as some of them can be used by active transactions.- Specified by:
evictDataPagein interfacePageEvictionTracker- Throws:
IgniteCheckedException- In case of page memory error.
-
forgetPage
public void forgetPage(long pageId) throws IgniteCheckedExceptionCall this method when last entry is removed from data page.- Specified by:
forgetPagein interfacePageEvictionTracker- Parameters:
pageId- Page id.- Throws:
IgniteCheckedException- In case of page memory error.
-
evictionRequired
public boolean evictionRequired()
Check if page eviction is required according to the configured policy.- Specified by:
evictionRequiredin interfacePageEvictionTracker- Returns:
Trueif eviction required.
-
-