Class RouterQuotaUsage
java.lang.Object
org.apache.hadoop.fs.QuotaUsage
org.apache.hadoop.hdfs.server.federation.router.RouterQuotaUsage
public final class RouterQuotaUsage
extends org.apache.hadoop.fs.QuotaUsage
The subclass of
QuotaUsage used in Router-based federation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuild the instance based on the builder. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longDefault quota usage count.Fields inherited from class org.apache.hadoop.fs.QuotaUsage
QUOTA_HEADER, QUOTA_HEADER_FIELDS, QUOTA_STRING_FORMAT, SPACE_QUOTA_STRING_FORMAT -
Method Summary
Modifier and TypeMethodDescriptiontoString()voidVerify if namespace quota is violated once quota is set.voidVerify space quota by storage type is violated once quota is set.voidVerify if storage space quota is violated once quota is set.Methods inherited from class org.apache.hadoop.fs.QuotaUsage
equals, getFileAndDirectoryCount, getHeader, getQuota, getQuotaUsage, getSpaceConsumed, getSpaceQuota, getStorageTypeHeader, getTypeConsumed, getTypeQuota, getTypesQuotaUsage, hashCode, isTypeConsumedAvailable, isTypeQuotaSet, setQuota, setSpaceConsumed, setSpaceQuota, toString, toString
-
Field Details
-
QUOTA_USAGE_COUNT_DEFAULT
public static final long QUOTA_USAGE_COUNT_DEFAULTDefault quota usage count.- See Also:
-
-
Method Details
-
verifyNamespaceQuota
public void verifyNamespaceQuota() throws org.apache.hadoop.hdfs.protocol.NSQuotaExceededExceptionVerify if namespace quota is violated once quota is set. Relevant methodDirectoryWithQuotaFeature.verifyNamespaceQuota(long).- Throws:
org.apache.hadoop.hdfs.protocol.NSQuotaExceededException- If the quota is exceeded.
-
verifyStoragespaceQuota
public void verifyStoragespaceQuota() throws org.apache.hadoop.hdfs.protocol.DSQuotaExceededExceptionVerify if storage space quota is violated once quota is set. Relevant methodDirectoryWithQuotaFeature.verifyStoragespaceQuota(long).- Throws:
org.apache.hadoop.hdfs.protocol.DSQuotaExceededException- If the quota is exceeded.
-
verifyQuotaByStorageType
public void verifyQuotaByStorageType() throws org.apache.hadoop.hdfs.protocol.DSQuotaExceededExceptionVerify space quota by storage type is violated once quota is set. Relevant methodDirectoryWithQuotaFeature.verifyQuotaByStorageType(org.apache.hadoop.hdfs.util.EnumCounters<org.apache.hadoop.fs.StorageType>).- Throws:
org.apache.hadoop.hdfs.protocol.DSQuotaExceededException- If the quota is exceeded.
-
toString
- Overrides:
toStringin classorg.apache.hadoop.fs.QuotaUsage
-