public final class LocalTachyonMaster extends Object
LocalTachyonCluster and
LocalTachyonClusterMultiMaster.
Isolated is defined as having its own root directory, and port.| Modifier and Type | Method and Description |
|---|---|
void |
cleanupUnderfs() |
void |
clearClients() |
static LocalTachyonMaster |
create()
Creates a new local tachyon master with a isolated home and port.
|
static LocalTachyonMaster |
create(String tachyonHome)
Creates a new local tachyon master with a isolated port.
|
InetSocketAddress |
getAddress()
Get the externally resolvable address of the master (used by unit test only).
|
TachyonFileSystem |
getClient() |
TachyonMaster |
getInternalMaster()
Gets the actual internal master.
|
String |
getJournalFolder() |
TachyonFS |
getOldClient() |
String |
getRPCBindHost()
Get the actual bind hostname on RPC service (used by unit test only).
|
int |
getRPCLocalPort()
Get the actual port that the RPC service is listening on (used by unit test only)
|
String |
getUri() |
String |
getWebBindHost()
Get the actual bind hostname on web service (used by unit test only).
|
int |
getWebLocalPort()
Get the actual port that the web service is listening on (used by unit test only)
|
boolean |
isServing() |
void |
start() |
void |
stop()
Stops the master and cleans up client connections.
|
public static LocalTachyonMaster create() throws IOException
IOException - when unable to do file operation or listen on portpublic static LocalTachyonMaster create(String tachyonHome) throws IOException
tachyonHome - Tachyon home directory, if the directory already exists, this method will
reuse any directory/file if possible, no deletion will be madeIOException - when unable to do file operation or listen on portpublic void start()
public boolean isServing()
public void stop()
throws Exception
UnderFileSystemUtils data. To do that you
must call cleanupUnderfs().Exception - when the operation failspublic void clearClients()
throws IOException
IOExceptionpublic void cleanupUnderfs()
throws IOException
IOExceptionpublic InetSocketAddress getAddress()
public TachyonMaster getInternalMaster()
public String getRPCBindHost()
public int getRPCLocalPort()
public String getWebBindHost()
public int getWebLocalPort()
public String getUri()
public TachyonFS getOldClient() throws IOException
IOExceptionpublic TachyonFileSystem getClient() throws IOException
IOExceptionpublic String getJournalFolder()
Copyright © 2015. All Rights Reserved.