Beispiel #1
0
  /**
   * 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");
  }
Beispiel #2
0
 /**
  * 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();
 }
Beispiel #3
0
 /**
  * Gets the actual bind hostname on web service (used by unit test only).
  *
  * @return the Web bind hostname
  */
 public String getWebBindHost() {
   return mAlluxioMaster.getWebBindHost();
 }
Beispiel #4
0
 /** @return the externally resolvable address of the master (used by unit test only) */
 public InetSocketAddress getAddress() {
   return mAlluxioMaster.getMasterAddress();
 }
Beispiel #5
0
 /** @return true if the master is serving, false otherwise */
 public boolean isServing() {
   return mAlluxioMaster.isServing();
 }