private boolean waitClusterPowerOffStateNotLessThan(PowerOffState.State state,boolean checkNumOfControlNodes){
  long expireTime=System.currentTimeMillis() + powerOffStateChangeTimeout;
  while (true) {
    if (coordinator.verifyNodesPowerOffStateNotBefore(state,checkNumOfControlNodes)) {
      return true;
    }
    sleep(powerOffStateProbeInterval);
    if (System.currentTimeMillis() >= expireTime) {
      return false;
    }
  }
}

private boolean waitClusterPowerOffStateNotLessThan ( PowerOffState . State state , boolean checkNumOfControlNodes ) { long expireTime = System . currentTimeMillis ( ) + powerOffStateChangeTimeout ; while ( true ) { if ( coordinator . verifyNodesPowerOffStateNotBefore ( state , checkNumOfControlNodes ) ) { return true ; } sleep ( powerOffStateProbeInterval ) ; if ( System . currentTimeMillis ( ) >= expireTime ) { return false ; } } }
wait cluster power off state change to a state not less than specified state
