@NotThreadSafe public class AlluxioMasterProcess extends MasterProcess
| Modifier and Type | Class and Description |
|---|---|
static class |
AlluxioMasterProcess.Factory
Factory for creating
AlluxioMasterProcess. |
| Modifier and Type | Field and Description |
|---|---|
protected SafeModeManager |
mSafeModeManager
The manager of safe mode state.
|
mGrpcServer, mJournalSystem, mWebServer| Modifier and Type | Method and Description |
|---|---|
protected void |
closeMasters()
Closes all masters, including block master, fileSystem master and additional masters.
|
<T extends Master> |
getMaster(java.lang.Class<T> clazz) |
java.net.InetSocketAddress |
getRpcAddress() |
java.net.InetSocketAddress |
getWebAddress() |
boolean |
isInSafeMode() |
void |
start() |
protected void |
startJvmMonitorProcess()
Starts jvm monitor process, to monitor jvm.
|
protected void |
startMasters(boolean isLeader)
Starts all masters, including block master, FileSystem master, and additional masters.
|
protected void |
startServing(java.lang.String startMessage,
java.lang.String stopMessage)
Starts serving, letting
MetricsSystem start sink and starting the web ui server and RPC
Server. |
protected void |
startServingRPCServer()
Starts the gRPC server.
|
protected void |
startServingWebServer()
Starts serving web ui server, resetting master web port, adding the metrics servlet to the web
server and starting web ui.
|
void |
stop() |
protected void |
stopMasters()
Stops all masters, including block master, fileSystem master and additional masters.
|
protected void |
stopServing()
Stops serving, trying stop RPC server and web ui server and letting
MetricsSystem stop
all the sinks. |
java.lang.String |
toString() |
getStartTimeMs, getUptimeMs, isServing, startRejectingServers, startServing, stopRejectingRpcServer, stopRejectingServers, stopRejectingWebServer, waitForReadyprotected final SafeModeManager mSafeModeManager
public <T extends Master> T getMaster(java.lang.Class<T> clazz)
getMaster in class MasterProcesspublic boolean isInSafeMode()
@Nullable public java.net.InetSocketAddress getWebAddress()
getWebAddress in class MasterProcesspublic java.net.InetSocketAddress getRpcAddress()
getRpcAddress in class MasterProcesspublic void start()
throws java.lang.Exception
java.lang.Exceptionpublic void stop()
throws java.lang.Exception
java.lang.Exceptionprotected void startMasters(boolean isLeader)
isLeader - if the Master is leaderprotected void stopMasters()
protected void closeMasters()
protected void startServingWebServer()
protected void startJvmMonitorProcess()
protected void startServing(java.lang.String startMessage,
java.lang.String stopMessage)
MetricsSystem start sink and starting the web ui server and RPC
Server.startServing in class MasterProcessstartMessage - empty string or the message that the master gains the leadershipstopMessage - empty string or the message that the master loses the leadershipprotected void startServingRPCServer()
Masters and meta services.protected void stopServing()
throws java.lang.Exception
MetricsSystem stop
all the sinks.java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019. All Rights Reserved.