Class DirectoryWithQuotaFeature
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.DirectoryWithQuotaFeature
- All Implemented Interfaces:
INode.Feature
Quota feature for
INodeDirectory.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final long -
Method Summary
Modifier and TypeMethodDescriptionvoidUpdate the space/namespace/type usage of the treetoString()
-
Field Details
-
DEFAULT_NAMESPACE_QUOTA
public static final long DEFAULT_NAMESPACE_QUOTA- See Also:
-
DEFAULT_STORAGE_SPACE_QUOTA
public static final long DEFAULT_STORAGE_SPACE_QUOTA- See Also:
-
-
Method Details
-
addSpaceConsumed2Cache
Update the space/namespace/type usage of the tree- Parameters:
delta- the change of the namespace/space/type usage
-
getSpaceAllowed
- Returns:
- the namespace and storagespace and typespace allowed.
-
getSpaceConsumed
- Returns:
- the namespace and storagespace and typespace consumed.
-
toString
-