@InterfaceAudience.Private public class NameNodeResourceChecker extends Object
hasAvailableDiskSpace
- which will return true if and only if
the NameNode has disk space available on all required volumes, and any volume
which is configured to be redundant. Volumes containing file system edits dirs
are added by default, and arbitrary extra volumes may be configured as well.Constructor and Description |
---|
NameNodeResourceChecker(Configuration conf)
Create a NameNodeResourceChecker, which will check the edits dirs and any
additional dirs to check set in
conf . |
Modifier and Type | Method and Description |
---|---|
boolean |
hasAvailableDiskSpace()
Return true if disk space is available on at least one of the configured
redundant volumes, and all of the configured required volumes.
|
public NameNodeResourceChecker(Configuration conf) throws IOException
conf
.IOException
public boolean hasAvailableDiskSpace()
Copyright © 2013 Apache Software Foundation. All rights reserved.