public final class RouterQuotaUsage
extends org.apache.hadoop.fs.QuotaUsage
QuotaUsage used in Router-based federation.| Modifier and Type | Class | Description |
|---|---|---|
static class |
RouterQuotaUsage.Builder |
Build the instance based on the builder.
|
| Modifier and Type | Field | Description |
|---|---|---|
static long |
QUOTA_USAGE_COUNT_DEFAULT |
Default quota usage count.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
toString() |
|
void |
verifyNamespaceQuota() |
Verify if namespace quota is violated once quota is set.
|
void |
verifyQuotaByStorageType() |
Verify space quota by storage type is violated once quota is set.
|
void |
verifyStoragespaceQuota() |
Verify if storage space quota is violated once quota is set.
|
equals, getFileAndDirectoryCount, getHeader, getQuota, getQuotaUsage, getSpaceConsumed, getSpaceQuota, getStorageTypeHeader, getTypeConsumed, getTypeQuota, getTypesQuotaUsage, hashCode, isTypeConsumedAvailable, isTypeQuotaSet, setQuota, setSpaceConsumed, setSpaceQuota, toString, toStringpublic static final long QUOTA_USAGE_COUNT_DEFAULT
public void verifyNamespaceQuota()
throws org.apache.hadoop.hdfs.protocol.NSQuotaExceededException
DirectoryWithQuotaFeature.verifyNamespaceQuota(long).org.apache.hadoop.hdfs.protocol.NSQuotaExceededException - If the quota is exceeded.public void verifyStoragespaceQuota()
throws org.apache.hadoop.hdfs.protocol.DSQuotaExceededException
DirectoryWithQuotaFeature.verifyStoragespaceQuota(long).org.apache.hadoop.hdfs.protocol.DSQuotaExceededException - If the quota is exceeded.public void verifyQuotaByStorageType()
throws org.apache.hadoop.hdfs.protocol.DSQuotaExceededException
DirectoryWithQuotaFeature.verifyQuotaByStorageType(org.apache.hadoop.hdfs.util.EnumCounters<org.apache.hadoop.fs.StorageType>).org.apache.hadoop.hdfs.protocol.DSQuotaExceededException - If the quota is exceeded.public java.lang.String toString()
toString in class org.apache.hadoop.fs.QuotaUsageCopyright © 2008–2025 Apache Software Foundation. All rights reserved.