public boolean isInState(final ServerState... expected) {
    boolean expectedState = false;
    if (expected != null) {
      for (int i = 0; i < expected.length; ++i) {
        expectedState |= (state == expected[i]);
      }
    }
    return expectedState;
  }
State of Server; list of hosted regions, etc.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/ServerStateNode.java