@NotThreadSafe
public final class LocalAlluxioJobCluster
extends java.lang.Object
AbstractLocalAlluxioCluster.| Constructor and Description |
|---|
LocalAlluxioJobCluster()
Creates a new instance of
LocalAlluxioJobCluster. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHostname() |
AlluxioJobMasterProcess |
getMaster() |
JobWorkerProcess |
getWorker() |
void |
restartWorker()
Stops the current worker and starts a new one.
|
void |
setProperty(PropertyKey pk,
java.lang.String value)
Overrides properties for the Job Master and Worker before starting.
|
void |
start()
Starts both master and a worker using the configurations in test conf respectively.
|
void |
stop()
Stops the alluxio job service threads.
|
public LocalAlluxioJobCluster()
LocalAlluxioJobCluster.public void start()
throws java.io.IOException,
ConnectionFailedException
java.io.IOException - if an I/O error occursConnectionFailedException - if network connection failedpublic void stop()
throws java.lang.Exception
java.lang.Exception - when the operation failspublic AlluxioJobMasterProcess getMaster()
public JobWorkerProcess getWorker()
public java.lang.String getHostname()
public void restartWorker()
throws java.lang.Exception
java.lang.Exception - if the the worker fails to stop or startpublic void setProperty(PropertyKey pk, java.lang.String value)
pk - the property key to setvalue - the value to set for the keyCopyright © 2021. All Rights Reserved.