@Private
@Unstable
public class FsDatasetCache
extends java.lang.Object
| Constructor | Description |
|---|---|
FsDatasetCache(org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl dataset) |
| Modifier and Type | Method | Description |
|---|---|---|
long |
getCacheCapacity() |
Get the maximum amount of bytes we can cache either on DRAM or
on persistent memory.
|
long |
getCacheUsed() |
Get the approximate amount of cache space used either on DRAM or
on persistent memory.
|
long |
getMemCacheCapacity() |
Get the maximum amount of bytes we can cache on DRAM.
|
long |
getMemCacheUsed() |
Get the approximate amount of DRAM cache space used.
|
long |
getNumBlocksCached() |
|
long |
getNumBlocksFailedToCache() |
|
long |
getNumBlocksFailedToUncache() |
|
void |
initCache(java.lang.String bpid) |
For persistent memory cache, create cache subdirectory specified with
blockPoolId to store cache data.
|
boolean |
isCached(java.lang.String bpid,
long blockId) |
public FsDatasetCache(org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl dataset)
throws java.io.IOException
java.io.IOExceptionpublic void initCache(java.lang.String bpid)
throws java.io.IOException
java.io.IOExceptionpublic long getMemCacheUsed()
public long getCacheUsed()
public long getMemCacheCapacity()
public long getCacheCapacity()
public long getNumBlocksFailedToCache()
public long getNumBlocksFailedToUncache()
public long getNumBlocksCached()
public boolean isCached(java.lang.String bpid,
long blockId)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.