@NotThreadSafe public class AlluxioWorkerProcess extends Object implements WorkerProcess
WorkerProcess.Factory
Modifier | Constructor and Description |
---|---|
protected |
AlluxioWorkerProcess(WorkerRegistry workerRegistry,
UfsManager ufsManager,
Worker worker,
DataServerFactory dataServerFactory,
NettyDataServer nettyDataServer,
HttpServer httpServer,
boolean delayWebServer)
Creates a new instance of
AlluxioWorkerProcess . |
Modifier and Type | Method and Description |
---|---|
WorkerNetAddress |
getAddress() |
String |
getDataBindHost() |
String |
getDataDomainSocketPath() |
int |
getDataLocalPort() |
int |
getNettyDataLocalPort() |
int |
getRestS3LocalPort() |
InetSocketAddress |
getRpcAddress() |
long |
getStartTimeMs() |
UfsManager |
getUfsManager() |
long |
getUptimeMs() |
String |
getWebBindHost() |
int |
getWebLocalPort() |
<T extends Worker> |
getWorker(Class<T> clazz) |
protected void |
setWebServer(WebServer webServer) |
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.
|
protected AlluxioWorkerProcess(WorkerRegistry workerRegistry, UfsManager ufsManager, Worker worker, DataServerFactory dataServerFactory, @Nullable NettyDataServer nettyDataServer, @Nullable HttpServer httpServer, boolean delayWebServer)
AlluxioWorkerProcess
.protected void setWebServer(WebServer webServer)
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 int getNettyDataLocalPort()
getNettyDataLocalPort
in interface WorkerProcess
public int getRestS3LocalPort()
getRestS3LocalPort
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.