/** * Stops the master and cleans up client connections. * * @throws Exception when the operation fails */ public void stop() throws Exception { clearClients(); mAlluxioMaster.stop(); System.clearProperty("alluxio.web.resources"); System.clearProperty("alluxio.master.min.worker.threads"); }
/** * Gets the actual port that the web service is listening on (used by unit test only). * * @return the Web local port */ public int getWebLocalPort() { return mAlluxioMaster.getWebLocalPort(); }
/** * Gets the actual bind hostname on web service (used by unit test only). * * @return the Web bind hostname */ public String getWebBindHost() { return mAlluxioMaster.getWebBindHost(); }
/** @return the externally resolvable address of the master (used by unit test only) */ public InetSocketAddress getAddress() { return mAlluxioMaster.getMasterAddress(); }
/** @return true if the master is serving, false otherwise */ public boolean isServing() { return mAlluxioMaster.isServing(); }