@Override
  public synchronized void join() throws InterruptedException {
    while (running) {
      wait();
    }
  }
Wait for the server to be stopped. Does not wait for all subthreads to finish.
@see #stop()
hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/SimpleRpcServer.java