@NotThreadSafe public abstract class AlluxioSimpleMasterProcess extends MasterProcess
mGrpcServer, mGrpcServerLock, mJournalSystem, mLeaderSelector, mServingThread, mServingThreadTimeoutMs, mWebServer, mWebServerLock
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getRpcAddress() |
InetSocketAddress |
getWebAddress() |
void |
start()
Starts the Alluxio process.
|
protected void |
startMaster(boolean isLeader) |
protected void |
startServing(String startMessage,
String stopMessage) |
protected void |
startServingRPCServer()
Starts the gRPC server.
|
protected void |
startServingWebServer() |
void |
stop()
Stops the Alluxio master server.
|
protected void |
stopMaster() |
protected void |
stopServing() |
String |
toString() |
getMaster, getStartTimeMs, getUptimeMs, isGrpcServing, isMetricSinkServing, isWebServing, startRejectingServers, startServing, stopRejectingRpcServer, stopRejectingServers, stopRejectingWebServer, waitForGrpcServerReady, waitForMetricSinkServing, waitForReady, waitForWebServerReady
public InetSocketAddress getWebAddress()
getWebAddress
in class MasterProcess
public InetSocketAddress getRpcAddress()
getRpcAddress
in class MasterProcess
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.Exception
public void stop() throws Exception
Exception
- if stopping the master failsprotected void startMaster(boolean isLeader)
protected void stopMaster()
protected void startServingWebServer()
protected void startServingRPCServer()
Master
s and meta services.Copyright © 2023. All Rights Reserved.