Exemple #1
0
  /**
   * Stops the master and cleans up client connections.
   *
   * <p>This method will not clean up {@link tachyon.util.UnderFileSystemUtils} data. To do that you
   * must call {@link #cleanupUnderfs()}.
   *
   * @throws Exception when the operation fails
   */
  public void stop() throws Exception {
    clearClients();

    mTachyonMaster.stop();

    System.clearProperty("tachyon.web.resources");
    System.clearProperty("tachyon.master.min.worker.threads");
  }
Exemple #2
0
 /**
  * Get the actual port that the web service is listening on (used by unit test only)
  *
  * @return the Web local port
  */
 public int getWebLocalPort() {
   return mTachyonMaster.getWebLocalPort();
 }
Exemple #3
0
 /**
  * Get the actual bind hostname on web service (used by unit test only).
  *
  * @return the Web bind hostname
  */
 public String getWebBindHost() {
   return mTachyonMaster.getWebBindHost();
 }
Exemple #4
0
 /** Get the externally resolvable address of the master (used by unit test only). */
 public InetSocketAddress getAddress() {
   return mTachyonMaster.getMasterAddress();
 }
Exemple #5
0
 public boolean isServing() {
   return mTachyonMaster.isServing();
 }