public void waitForServerOnline() {
    while (!isStopped() && !isOnline()) {
      synchronized (online) {
        try {
          online.wait(msgInterval);
        } catch (InterruptedException ie) {
          Thread.currentThread().interrupt();
          break;
        }
      }
    }
  }
Stops the regionserver.
@param msg   Status message
@param force True if this is a regionserver abort
@param user  The user executing the stop request, or null if no user is associated
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java