@NotThreadSafe public final class AlluxioJobWorkerProcess extends Object implements JobWorkerProcess
JobWorkerProcess.Factory
Modifier and Type | Method and Description |
---|---|
WorkerNetAddress |
getAddress() |
InetSocketAddress |
getRpcAddress() |
long |
getStartTimeMs() |
long |
getUptimeMs() |
InetSocketAddress |
getWebAddress() |
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 InetSocketAddress getRpcAddress()
getRpcAddress
in interface JobWorkerProcess
public long getStartTimeMs()
getStartTimeMs
in interface JobWorkerProcess
public long getUptimeMs()
getUptimeMs
in interface JobWorkerProcess
public InetSocketAddress getWebAddress()
getWebAddress
in interface JobWorkerProcess
public boolean waitForReady(int timeoutMs)
Process
waitForReady
in interface Process
timeoutMs
- how long to wait in millisecondspublic 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 WorkerNetAddress getAddress()
getAddress
in interface JobWorkerProcess
Copyright © 2023. All Rights Reserved.