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

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.namenode.NameNodeResourceChecker

public class NameNodeResourceChecker
extends Object

NameNodeResourceChecker provides a method - hasAvailableDiskSpace - which will return true if and only if the NameNode has disk space available on all volumes which are configured to be checked. Volumes containing file system name/edits dirs are added by default, and arbitrary extra volumes may be configured as well.


Constructor Summary
NameNodeResourceChecker(org.apache.hadoop.conf.Configuration conf)
          Create a NameNodeResourceChecker, which will check the name dirs and edits dirs set in conf.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameNodeResourceChecker

public NameNodeResourceChecker(org.apache.hadoop.conf.Configuration conf)
                        throws IOException
Create a NameNodeResourceChecker, which will check the name dirs and edits dirs set in conf.

Parameters:
conf -
Throws:
IOException


Copyright © 2012 Apache Software Foundation. All Rights Reserved.