org.apache.hadoop.hbase.util
Class FSUtils

java.lang.Object
  extended by org.apache.hadoop.hbase.util.FSUtils

public class FSUtils
extends Object

Utility methods for interacting with the underlying file system.


Method Summary
static boolean checkVersion(FileSystem fs, Path rootdir)
          Verifies current version of file system
static boolean isFileSystemAvailable(FileSystem fs)
          Checks to see if the specified file system is available
static void setVersion(FileSystem fs, Path rootdir)
          Sets version of file system
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isFileSystemAvailable

public static boolean isFileSystemAvailable(FileSystem fs)
Checks to see if the specified file system is available

Parameters:
fs -
Returns:
true if the specified file system is available.

checkVersion

public static boolean checkVersion(FileSystem fs,
                                   Path rootdir)
                            throws IOException
Verifies current version of file system

Parameters:
fs -
rootdir -
Returns:
true if the current file system is the correct version
Throws:
IOException

setVersion

public static void setVersion(FileSystem fs,
                              Path rootdir)
                       throws IOException
Sets version of file system

Parameters:
fs -
rootdir -
Throws:
IOException


Copyright © 2006 The Apache Software Foundation