org.apache.hadoop.hdfs.server.namenode
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.
DEFAULT_NAMESPACE_QUOTA
public static final long DEFAULT_NAMESPACE_QUOTA
- See Also:
- Constant Field Values
DEFAULT_DISKSPACE_QUOTA
public static final long DEFAULT_DISKSPACE_QUOTA
- See Also:
- Constant Field Values
addSpaceConsumed2Cache
public void addSpaceConsumed2Cache(long nsDelta,
long dsDelta)
- Update the size of the tree
- Parameters:
nsDelta - the change of the tree sizedsDelta - change to disk space occupied
getSpaceConsumed
public Quota.Counts getSpaceConsumed()
- Returns:
- the namespace and diskspace consumed.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014 Apache Software Foundation. All Rights Reserved.