@Override
  public synchronized void stop() {
    LOG.info("Stopping server on " + port);
    running = false;
    if (authTokenSecretMgr != null) {
      authTokenSecretMgr.stop();
      authTokenSecretMgr = null;
    }
    listener.interrupt();
    listener.doStop();
    responder.interrupt();
    scheduler.stop();
    notifyAll();
  }
Stops the service. No new calls will be handled after this is called.
hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/SimpleRpcServer.java