@NotThreadSafe public final class AlluxioSecondaryMaster extends Object implements Process
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Starts the secondary Alluxio master.
|
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 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 static void main(String[] args)
args
- command line arguments, should be emptyCopyright © 2023. All Rights Reserved.