public class QuotaMetaStore extends DefaultMetaStore
Constructor and Description |
---|
QuotaMetaStore(AlluxioConfiguration conf) |
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) |
PageInfo |
getPageInfo(PageId pageId) |
PageInfo |
removePage(PageId pageId)
Removes a page.
|
void |
reset()
Resets the meta store.
|
bytes, evict, hasPage, pages
public QuotaMetaStore(AlluxioConfiguration conf)
conf
- configurationpublic void addPage(PageId pageId, PageInfo pageInfo)
MetaStore
addPage
in interface MetaStore
addPage
in class DefaultMetaStore
pageId
- page identifierpageInfo
- info of the pagepublic PageInfo getPageInfo(PageId pageId) throws PageNotFoundException
getPageInfo
in interface MetaStore
getPageInfo
in class DefaultMetaStore
pageId
- page identifierPageNotFoundException
public PageInfo removePage(PageId pageId) throws PageNotFoundException
MetaStore
removePage
in interface MetaStore
removePage
in class DefaultMetaStore
pageId
- page identifierPageNotFoundException
public long bytes(CacheScope cacheScope)
cacheScope
- scope to querypublic void reset()
MetaStore
reset
in interface MetaStore
reset
in class DefaultMetaStore
@Nullable public PageInfo evict(CacheScope cacheScope)
cacheScope
- scope to evictCopyright © 2023. All Rights Reserved.