Пример #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");
  }
Пример #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();
 }
Пример #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();
 }
Пример #4
0
 /** @return the externally resolvable address of the master (used by unit test only) */
 public InetSocketAddress getAddress() {
   return mAlluxioMaster.getMasterAddress();
 }
Пример #5
0
 /** @return true if the master is serving, false otherwise */
 public boolean isServing() {
   return mAlluxioMaster.isServing();
 }