@NotThreadSafe public class QuotaPageMetaStore extends DefaultPageMetaStore
mLock| Constructor and Description |
|---|
QuotaPageMetaStore(CacheEvictorOptions cacheEvictorOptions,
java.util.List<PageStoreDir> dirs) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPage(PageId pageId,
PageInfo pageInfo)
Adds a new page to the cache.
|
long |
bytes(CacheScope cacheScope) |
PageInfo |
evict(CacheScope cacheScope,
PageStoreDir pageStoreDir) |
PageInfo |
getPageInfo(PageId pageId) |
PageInfo |
removePage(PageId pageId)
Removes a page.
|
void |
reset()
Resets the meta store.
|
addTempPage, allocate, bytes, commitFile, getLock, getStoreDirs, hasPage, numPagesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, evictpublic QuotaPageMetaStore(CacheEvictorOptions cacheEvictorOptions, java.util.List<PageStoreDir> dirs)
cacheEvictorOptions - options of cache evictordirs - storage directoriespublic void addPage(PageId pageId, PageInfo pageInfo)
PageMetaStoreaddPage in interface PageMetaStoreaddPage in class DefaultPageMetaStorepageId - page identifierpageInfo - info of the pagepublic PageInfo getPageInfo(PageId pageId) throws PageNotFoundException
getPageInfo in interface PageMetaStoregetPageInfo in class DefaultPageMetaStorepageId - page identifierPageNotFoundExceptionpublic PageInfo removePage(PageId pageId) throws PageNotFoundException
PageMetaStoreremovePage in interface PageMetaStoreremovePage in class DefaultPageMetaStorepageId - page identifierPageNotFoundExceptionpublic long bytes(CacheScope cacheScope)
cacheScope - scope to querypublic void reset()
PageMetaStorereset in interface PageMetaStorereset in class DefaultPageMetaStore@Nullable public PageInfo evict(CacheScope cacheScope, PageStoreDir pageStoreDir)
evict in interface PageMetaStoreevict in class DefaultPageMetaStorecacheScope - scope to evictpageStoreDir - the page store dir targeted to evictCopyright © 2022. All Rights Reserved.