public interface ShadowCacheManager
| Modifier and Type | Method and Description |
|---|---|
void |
aging()
Aging all the pages stored in this shadow cache.
|
static ShadowCacheManager |
create(AlluxioConfiguration conf) |
boolean |
delete(PageId pageId)
Deletes a page from the cache.
|
int |
get(PageId pageId,
int bytesToRead,
CacheScope scope)
Reads the entire page and refresh its access time if the queried page is found in the cache.
|
double |
getFalsePositiveRatio() |
long |
getShadowCacheByteHit() |
long |
getShadowCacheByteRead() |
long |
getShadowCacheBytes() |
long |
getShadowCacheBytes(CacheScope scope) |
long |
getShadowCachePageHit() |
long |
getShadowCachePageRead() |
long |
getShadowCachePages() |
long |
getShadowCachePages(CacheScope scope) |
boolean |
put(PageId pageId,
int size,
CacheScope scope)
Puts a page with specified size and scope into the shadow cache manager.
|
void |
stopUpdate()
Stop the background aging task.
|
void |
updateWorkingSetSize()
Update working set size in number of pages and bytes.
|
static ShadowCacheManager create(AlluxioConfiguration conf)
conf - the Alluxio configurationShadowCacheManagerboolean put(PageId pageId, int size, CacheScope scope)
pageId - page identifiersize - page sizescope - cache scopeint get(PageId pageId, int bytesToRead, CacheScope scope)
pageId - page identifierbytesToRead - number of bytes to read in this pagescope - cache scopeboolean delete(PageId pageId)
pageId - page identifiervoid aging()
void updateWorkingSetSize()
void stopUpdate()
long getShadowCachePages()
long getShadowCachePages(CacheScope scope)
scope - cache scopelong getShadowCacheBytes()
long getShadowCacheBytes(CacheScope scope)
scope - cache scopelong getShadowCachePageRead()
long getShadowCachePageHit()
long getShadowCacheByteRead()
long getShadowCacheByteHit()
double getFalsePositiveRatio()
Copyright © 2022. All Rights Reserved.