private boolean isAnyNodeInState(String state,boolean isVersioned) throws Exception {
  List<Configuration> configs=coordinator.queryAllConfiguration(coordinator.getSiteId(),coordinator.getVersionedDbConfigPath(serviceName,getDbsvcVersion(isVersioned)));
  for (int i=0; i < configs.size(); i++) {
    Configuration config=configs.get(i);
    String value=config.getConfig(state);
    if (value != null && Boolean.parseBoolean(value)) {
      return true;
    }
  }
  return false;
}

private boolean isAnyNodeInState ( String state , boolean isVersioned ) throws Exception { List < Configuration > configs = coordinator . queryAllConfiguration ( coordinator . getSiteId ( ) , coordinator . getVersionedDbConfigPath ( serviceName , getDbsvcVersion ( isVersioned ) ) ) ; for ( int i = 0 ; i < configs . size ( ) ; i ++ ) { Configuration config = configs . get ( i ) ; String value = config . getConfig ( state ) ; if ( value != null && Boolean . parseBoolean ( value ) ) { return true ; } } return false ; }
checks to see if any node in the cluster has entered a certain state
