ContentSummary@Public
@Evolving
public class QuotaUsage
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
QuotaUsage.Builder |
Builder class for QuotaUsage.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected static java.lang.String |
QUOTA_HEADER |
|
protected static java.lang.String[] |
QUOTA_HEADER_FIELDS |
|
protected static java.lang.String |
QUOTA_STRING_FORMAT |
Output format:
|----12----| |----15----| |----15----| |----15----| |-------18-------|
QUOTA REMAINING_QUOTA SPACE_QUOTA SPACE_QUOTA_REM FILE_NAME
|
protected static java.lang.String |
SPACE_QUOTA_STRING_FORMAT |
| Modifier | Constructor | Description |
|---|---|---|
protected |
QuotaUsage() |
|
protected |
QuotaUsage(QuotaUsage.Builder builder) |
Build the instance based on the builder.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
long |
getFileAndDirectoryCount() |
Return the directory count.
|
static java.lang.String |
getHeader() |
Return the header of the output.
|
long |
getQuota() |
Return the directory quota.
|
protected java.lang.String |
getQuotaUsage(boolean hOption) |
|
long |
getSpaceConsumed() |
Return (disk) space consumed.
|
long |
getSpaceQuota() |
Return (disk) space quota.
|
static java.lang.String |
getStorageTypeHeader(java.util.List<StorageType> storageTypes) |
return the header of with the StorageTypes.
|
long |
getTypeConsumed(StorageType type) |
Return storage type consumed.
|
long |
getTypeQuota(StorageType type) |
Return storage type quota.
|
protected java.lang.String |
getTypesQuotaUsage(boolean hOption,
java.util.List<StorageType> types) |
|
int |
hashCode() |
|
boolean |
isTypeConsumedAvailable() |
Return true if any storage type consumption information is available.
|
boolean |
isTypeQuotaSet() |
Return true if any storage type quota has been set.
|
protected void |
setQuota(long quota) |
|
protected void |
setSpaceConsumed(long spaceConsumed) |
|
protected void |
setSpaceQuota(long spaceQuota) |
|
java.lang.String |
toString() |
|
java.lang.String |
toString(boolean hOption) |
|
java.lang.String |
toString(boolean hOption,
boolean tOption,
java.util.List<StorageType> types) |
Return the string representation of the object in the output format.
|
protected static final java.lang.String QUOTA_STRING_FORMAT
protected static final java.lang.String SPACE_QUOTA_STRING_FORMAT
protected static final java.lang.String[] QUOTA_HEADER_FIELDS
protected static final java.lang.String QUOTA_HEADER
protected QuotaUsage()
protected QuotaUsage(QuotaUsage.Builder builder)
builder - bulider.protected void setQuota(long quota)
protected void setSpaceConsumed(long spaceConsumed)
protected void setSpaceQuota(long spaceQuota)
public long getFileAndDirectoryCount()
public long getQuota()
public long getSpaceConsumed()
public long getSpaceQuota()
public long getTypeQuota(StorageType type)
type - storage type.public long getTypeConsumed(StorageType type)
type - storage type.public boolean isTypeQuotaSet()
public boolean isTypeConsumedAvailable()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic static java.lang.String getHeader()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(boolean hOption)
public java.lang.String toString(boolean hOption,
boolean tOption,
java.util.List<StorageType> types)
hOption - a flag indicating if human readable output if to be usedtOption - type option.types - storage types.protected java.lang.String getQuotaUsage(boolean hOption)
protected java.lang.String getTypesQuotaUsage(boolean hOption,
java.util.List<StorageType> types)
public static java.lang.String getStorageTypeHeader(java.util.List<StorageType> storageTypes)
storageTypes - storage types.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.