Class DirectoryWithQuotaFeature

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.DirectoryWithQuotaFeature
All Implemented Interfaces:
INode.Feature

public final class DirectoryWithQuotaFeature extends Object implements INode.Feature
Quota feature for INodeDirectory.
  • 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

      public void addSpaceConsumed2Cache(QuotaCounts delta)
      Update the space/namespace/type usage of the tree
      Parameters:
      delta - the change of the namespace/space/type usage
    • getSpaceAllowed

      public QuotaCounts getSpaceAllowed()
      Returns:
      the namespace and storagespace and typespace allowed.
    • getSpaceConsumed

      public QuotaCounts getSpaceConsumed()
      Returns:
      the namespace and storagespace and typespace consumed.
    • toString

      public String toString()
      Overrides:
      toString in class Object