public final class LocalTachyonCluster extends Object
| Constructor and Description |
|---|
LocalTachyonCluster(long workerCapacityBytes,
int quotaUnitBytes,
int userBlockSize) |
| Modifier and Type | Method and Description |
|---|---|
TachyonFileSystem |
getClient() |
LocalTachyonMaster |
getMaster() |
String |
getMasterHostname() |
int |
getMasterPort() |
TachyonConf |
getMasterTachyonConf() |
String |
getMasterUri() |
TachyonFS |
getOldClient() |
String |
getTachyonHome() |
BlockWorker |
getWorker() |
NetAddress |
getWorkerAddress() |
String |
getWorkerDataFolder() |
TachyonConf |
getWorkerTachyonConf() |
static void |
main(String[] args) |
void |
start()
Starts both a master and a worker using the configurations in
MasterContext and
WorkerContext respectively. |
void |
startMaster()
Configures and starts master.
|
void |
startWorker()
Configure and start worker.
|
void |
stop()
Stop both of the tachyon and underfs service threads.
|
void |
stopTFS()
Stop the tachyon filesystem's service thread only.
|
void |
stopUFS()
Cleanup the underfs cluster test folder only.
|
void |
stopWorker()
Cleanup the worker state from the master and stop the worker.
|
public LocalTachyonCluster(long workerCapacityBytes,
int quotaUnitBytes,
int userBlockSize)
public TachyonFS getOldClient() throws IOException
IOExceptionpublic TachyonFileSystem getClient() throws IOException
IOExceptionpublic LocalTachyonMaster getMaster()
public TachyonConf getMasterTachyonConf()
public String getMasterHostname()
public String getMasterUri()
public int getMasterPort()
public String getTachyonHome()
public BlockWorker getWorker()
public TachyonConf getWorkerTachyonConf()
public NetAddress getWorkerAddress()
public String getWorkerDataFolder()
public void startMaster()
throws IOException
IOException - when the operation failspublic void startWorker()
throws IOException
IOException - when the operation failspublic void start()
throws IOException
MasterContext and
WorkerContext respectively.IOException - when the operation failspublic void stop()
throws Exception
Exception - when the operation failspublic void stopTFS()
throws Exception
Exception - when the operation failspublic void stopUFS()
throws Exception
Exception - when the operation failsCopyright © 2015. All Rights Reserved.