@InterfaceAudience.Public @InterfaceStability.Evolving public class CachePoolInfo extends Object
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_LIMIT |
static long |
DEFAULT_MAX_RELATIVE_EXPIRY
Default max relative expiry for cache pools.
|
static long |
LIMIT_UNLIMITED |
static long |
RELATIVE_EXPIRY_NEVER
Indicates that the pool does not have a maximum relative expiry.
|
Constructor and Description |
---|
CachePoolInfo(String poolName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getGroupName() |
Long |
getLimit() |
Long |
getMaxRelativeExpiryMs() |
FsPermission |
getMode() |
String |
getOwnerName() |
String |
getPoolName() |
int |
hashCode() |
CachePoolInfo |
setGroupName(String groupName) |
CachePoolInfo |
setLimit(Long bytes) |
CachePoolInfo |
setMaxRelativeExpiryMs(Long ms)
Set the maximum relative expiration of directives of this pool in
milliseconds.
|
CachePoolInfo |
setMode(FsPermission mode) |
CachePoolInfo |
setOwnerName(String ownerName) |
String |
toString() |
static void |
validate(CachePoolInfo info) |
static void |
validateName(String poolName) |
public static final long RELATIVE_EXPIRY_NEVER
public static final long DEFAULT_MAX_RELATIVE_EXPIRY
public static final long LIMIT_UNLIMITED
public static final long DEFAULT_LIMIT
public CachePoolInfo(String poolName)
public String getPoolName()
public String getOwnerName()
public CachePoolInfo setOwnerName(String ownerName)
public String getGroupName()
public CachePoolInfo setGroupName(String groupName)
public FsPermission getMode()
public CachePoolInfo setMode(FsPermission mode)
public Long getLimit()
public CachePoolInfo setLimit(Long bytes)
public Long getMaxRelativeExpiryMs()
public CachePoolInfo setMaxRelativeExpiryMs(Long ms)
ms
- in millisecondspublic static void validate(CachePoolInfo info) throws IOException
IOException
public static void validateName(String poolName) throws IOException
IOException
Copyright © 2015 Apache Software Foundation. All rights reserved.