public synchronized boolean shouldWait(List<String> targetNames) throws InterruptedException {
  if (_currentSpaceState == StartupState.LAST) {
    return false;
  }
  if (!_activeSpaces.isEmpty())   return false;
  if (_currentSpaceState == StartupState.UNINITIALIZED) {
    if (_spaceName.equals(targetNames.get(0)))     return false;
  }
  return true;
}

public synchronized boolean shouldWait ( List < String > targetNames ) throws InterruptedException { if ( _currentSpaceState == StartupState . LAST ) { return false ; } if ( ! _activeSpaces . isEmpty ( ) ) return false ; if ( _currentSpaceState == StartupState . UNINITIALIZED ) { if ( _spaceName . equals ( targetNames . get ( 0 ) ) ) return false ; } return true ; }
check if this space should wait for other space in cluster to start
