@Private
public final class CachePool
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CachePool.DirectiveList |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addBytesCached(long bytes) |
|
void |
addBytesNeeded(long bytes) |
|
void |
addFilesCached(long files) |
|
void |
addFilesNeeded(long files) |
|
long |
getBytesCached() |
|
long |
getBytesNeeded() |
|
long |
getBytesOverlimit() |
|
short |
getDefaultReplication() |
|
CachePool.DirectiveList |
getDirectiveList() |
|
org.apache.hadoop.hdfs.protocol.CachePoolEntry |
getEntry(FSPermissionChecker pc) |
Returns a CachePoolInfo describing this CachePool based on the permissions
of the calling user.
|
long |
getFilesCached() |
|
long |
getFilesNeeded() |
|
java.lang.String |
getGroupName() |
|
long |
getLimit() |
|
long |
getMaxRelativeExpiryMs() |
|
org.apache.hadoop.fs.permission.FsPermission |
getMode() |
|
java.lang.String |
getOwnerName() |
|
java.lang.String |
getPoolName() |
|
void |
resetStatistics() |
Resets statistics related to this CachePool
|
void |
setDefaultReplication(short replication) |
|
CachePool |
setGroupName(java.lang.String groupName) |
|
CachePool |
setLimit(long bytes) |
|
CachePool |
setMaxRelativeExpiryMs(long expiry) |
|
CachePool |
setMode(org.apache.hadoop.fs.permission.FsPermission mode) |
|
CachePool |
setOwnerName(java.lang.String ownerName) |
|
java.lang.String |
toString() |
public java.lang.String getPoolName()
public java.lang.String getOwnerName()
public CachePool setOwnerName(java.lang.String ownerName)
public java.lang.String getGroupName()
public CachePool setGroupName(java.lang.String groupName)
public org.apache.hadoop.fs.permission.FsPermission getMode()
public CachePool setMode(org.apache.hadoop.fs.permission.FsPermission mode)
public long getLimit()
public CachePool setLimit(long bytes)
public short getDefaultReplication()
public void setDefaultReplication(short replication)
public long getMaxRelativeExpiryMs()
public CachePool setMaxRelativeExpiryMs(long expiry)
public void resetStatistics()
public void addBytesNeeded(long bytes)
public void addBytesCached(long bytes)
public void addFilesNeeded(long files)
public void addFilesCached(long files)
public long getBytesNeeded()
public long getBytesCached()
public long getBytesOverlimit()
public long getFilesNeeded()
public long getFilesCached()
public org.apache.hadoop.hdfs.protocol.CachePoolEntry getEntry(FSPermissionChecker pc)
pc - Permission checker to be used to validate the user's permissions,
or nullpublic java.lang.String toString()
toString in class java.lang.Objectpublic CachePool.DirectiveList getDirectiveList()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.