public class MultipleBloomShadowCacheManager extends Object implements ShadowCacheManager
Constructor and Description |
---|
MultipleBloomShadowCacheManager(AlluxioConfiguration conf)
Create a MultipleBloomShadowCacheManager.
|
Modifier and Type | Method and Description |
---|---|
void |
aging()
Aging all the pages stored in this shadow cache.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public MultipleBloomShadowCacheManager(AlluxioConfiguration conf)
conf
- the alluxio configurationpublic boolean put(PageId pageId, int size, CacheScope scope)
ShadowCacheManager
put
in interface ShadowCacheManager
pageId
- page identifiersize
- page sizescope
- cache scopepublic int get(PageId pageId, int bytesToRead, CacheScope scope)
ShadowCacheManager
get
in interface ShadowCacheManager
pageId
- page identifierbytesToRead
- number of bytes to read in this pagescope
- cache scopepublic void updateWorkingSetSize()
ShadowCacheManager
updateWorkingSetSize
in interface ShadowCacheManager
public boolean delete(PageId pageId)
ShadowCacheManager
delete
in interface ShadowCacheManager
pageId
- page identifierpublic void aging()
ShadowCacheManager
aging
in interface ShadowCacheManager
public void stopUpdate()
ShadowCacheManager
stopUpdate
in interface ShadowCacheManager
public long getShadowCachePages()
getShadowCachePages
in interface ShadowCacheManager
public long getShadowCachePages(CacheScope scope)
getShadowCachePages
in interface ShadowCacheManager
scope
- cache scopepublic long getShadowCacheBytes()
getShadowCacheBytes
in interface ShadowCacheManager
public long getShadowCacheBytes(CacheScope scope)
getShadowCacheBytes
in interface ShadowCacheManager
scope
- cache scopepublic long getShadowCachePageRead()
getShadowCachePageRead
in interface ShadowCacheManager
public long getShadowCachePageHit()
getShadowCachePageHit
in interface ShadowCacheManager
public long getShadowCacheByteRead()
getShadowCacheByteRead
in interface ShadowCacheManager
public long getShadowCacheByteHit()
getShadowCacheByteHit
in interface ShadowCacheManager
public double getFalsePositiveRatio()
getFalsePositiveRatio
in interface ShadowCacheManager
Copyright © 2023. All Rights Reserved.