/** * Starts serving, letting {@link MetricsSystem} start sink and starting the web ui server and RPC * Server. * * @param startMessage empty string or the message that the master gains the leadership * @param stopMessage empty string or the message that the master loses the leadership */ protected void startServing(String startMessage, String stopMessage) { MetricsSystem.startSinks(ServerConfiguration.get(PropertyKey.METRICS_CONF_FILE)); startServingWebServer(); startJvmMonitorProcess(); LOG.info("Alluxio master version {} started{}. " + "bindHost={}, connectHost={}, rpcPort={}, webPort={}", RuntimeConstants.VERSION, startMessage, NetworkAddressUtils.getBindAddress(ServiceType.MASTER_RPC, ServerConfiguration.global()), NetworkAddressUtils.getConnectAddress(ServiceType.MASTER_RPC, ServerConfiguration.global()), NetworkAddressUtils.getPort(ServiceType.MASTER_RPC, ServerConfiguration.global()), NetworkAddressUtils.getPort(ServiceType.MASTER_WEB, ServerConfiguration.global())); startServingRPCServer(); LOG.info("Alluxio master ended{}", stopMessage); }
/** * Starts serving, letting {@link MetricsSystem} start sink and starting the web ui server and RPC * Server. * * @param startMessage empty string or the message that the master gains the leadership * @param stopMessage empty string or the message that the master loses the leadership */ protected void startServing(String startMessage, String stopMessage) { MetricsSystem.startSinks(); startServingWebServer(); startJvmMonitorProcess(); LOG.info("Alluxio master version {} started{}. " + "bindHost={}, connectHost={}, rpcPort={}, webPort={}", RuntimeConstants.VERSION, startMessage, NetworkAddressUtils.getBindAddress(ServiceType.MASTER_RPC), NetworkAddressUtils.getConnectAddress(ServiceType.MASTER_RPC), NetworkAddressUtils.getPort(ServiceType.MASTER_RPC), NetworkAddressUtils.getPort(ServiceType.MASTER_WEB)); startServingRPCServer(); LOG.info("Alluxio master ended{}", stopMessage); }