@NotThreadSafe public final class LocalFileSystemCluster extends UnderFileSystemCluster
mBaseDir| Constructor and Description |
|---|
LocalFileSystemCluster(String baseDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Cleans up the test environment over underfs cluster system, so that we can re-use the running
system for the next test round instead of turning on/off it from time to time.
|
String |
getUnderFilesystemAddress() |
boolean |
isStarted() |
void |
shutdown()
Stops the underfs cluster system.
|
void |
start()
Starts the underfs cluster system.
|
get, get, getUnderFilesystemCluster, getUnderFSClass, registerJVMOnExistHookpublic LocalFileSystemCluster(String baseDir)
baseDir - the base directorypublic String getUnderFilesystemAddress()
getUnderFilesystemAddress in class UnderFileSystemClusterpublic boolean isStarted()
isStarted in class UnderFileSystemClusterpublic void shutdown()
throws IOException
UnderFileSystemClustershutdown in class UnderFileSystemClusterIOExceptionpublic void start()
throws IOException
UnderFileSystemClusterstart in class UnderFileSystemClusterIOExceptionpublic void cleanup()
throws IOException
UnderFileSystemClustercleanup in class UnderFileSystemClusterIOExceptionCopyright © 2017. All Rights Reserved.