org.apache.hadoop.hdfs.server.namenode
Class DirectoryWithQuotaFeature

java.lang.Object
  extended by 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 Summary
static long DEFAULT_DISKSPACE_QUOTA
           
static long DEFAULT_NAMESPACE_QUOTA
           
 
Method Summary
 void addSpaceConsumed2Cache(long nsDelta, long dsDelta)
          Update the size of the tree
 Quota.Counts getSpaceConsumed()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

addSpaceConsumed2Cache

public void addSpaceConsumed2Cache(long nsDelta,
                                   long dsDelta)
Update the size of the tree

Parameters:
nsDelta - the change of the tree size
dsDelta - 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.