public class ClockCuckooShadowCacheManager extends Object implements ShadowCacheManager
ClockCuckooFilter
implementation.Constructor and Description |
---|
ClockCuckooShadowCacheManager(AlluxioConfiguration conf)
Create a ClockCuckooShadowCacheManager.
|
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 cacheScope)
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 cacheScope)
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 ClockCuckooShadowCacheManager(AlluxioConfiguration conf)
conf
- the alluxio configurationpublic boolean put(PageId pageId, int size, CacheScope cacheScope)
ShadowCacheManager
put
in interface ShadowCacheManager
pageId
- page identifiersize
- page sizecacheScope
- cache scopepublic int get(PageId pageId, int bytesToRead, CacheScope cacheScope)
ShadowCacheManager
get
in interface ShadowCacheManager
pageId
- page identifierbytesToRead
- number of bytes to read in this pagecacheScope
- cache scopepublic boolean delete(PageId pageId)
ShadowCacheManager
delete
in interface ShadowCacheManager
pageId
- page identifierpublic void aging()
ShadowCacheManager
aging
in interface ShadowCacheManager
public void updateWorkingSetSize()
ShadowCacheManager
updateWorkingSetSize
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.