@NotThreadSafe public final class AlluxioWorkerProcess extends Object implements WorkerProcess
WorkerProcess.Factory
Modifier and Type | Method and Description |
---|---|
WorkerNetAddress |
getAddress() |
String |
getDataBindHost() |
String |
getDataDomainSocketPath() |
int |
getDataLocalPort() |
InetSocketAddress |
getRpcAddress() |
long |
getStartTimeMs() |
UfsManager |
getUfsManager() |
long |
getUptimeMs() |
String |
getWebBindHost() |
int |
getWebLocalPort() |
<T extends Worker> |
getWorker(Class<T> clazz) |
void |
start()
Starts the Alluxio process.
|
void |
stop()
Stops the Alluxio process, blocking until the action is completed.
|
String |
toString() |
boolean |
waitForReady(int timeoutMs)
Waits until the process is ready to serve requests.
|
public long getStartTimeMs()
getStartTimeMs
in interface WorkerProcess
public long getUptimeMs()
getUptimeMs
in interface WorkerProcess
public String getDataBindHost()
getDataBindHost
in interface WorkerProcess
public int getDataLocalPort()
getDataLocalPort
in interface WorkerProcess
public String getDataDomainSocketPath()
getDataDomainSocketPath
in interface WorkerProcess
public String getWebBindHost()
getWebBindHost
in interface WorkerProcess
public int getWebLocalPort()
getWebLocalPort
in interface WorkerProcess
public <T extends Worker> T getWorker(Class<T> clazz)
getWorker
in interface WorkerProcess
T
- the type of the worker to getclazz
- the class of the worker to getpublic UfsManager getUfsManager()
getUfsManager
in interface WorkerProcess
public InetSocketAddress getRpcAddress()
getRpcAddress
in interface WorkerProcess
public void start() throws Exception
Process
Process.stop()
.
The Process.waitForReady(int)
method can be used to make sure that the process is ready to
serve requests.public void stop() throws Exception
Process
public boolean waitForReady(int timeoutMs)
Process
waitForReady
in interface Process
timeoutMs
- how long to wait in millisecondspublic WorkerNetAddress getAddress()
getAddress
in interface WorkerProcess
Copyright © 2023. All Rights Reserved.