public synchronized void onSpaceConnect(SpaceConnectionEvent event){
  try {
    _activeSpaces.add(event.getId());
    if (_currentSpaceState == StartupState.WAITING) {
      notify();
    }
 else {
      changeState(StartupState.NOT_LAST);
    }
  }
 catch (  Exception e) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING," Error on space connect [" + _spaceName + "] state.",e);
    }
  }
}

public synchronized void onSpaceConnect ( SpaceConnectionEvent event ) { try { _activeSpaces . add ( event . getId ( ) ) ; if ( _currentSpaceState == StartupState . WAITING ) { notify ( ) ; } else { changeState ( StartupState . NOT_LAST ) ; } } catch ( Exception e ) { if ( _logger . isLoggable ( Level . WARNING ) ) { _logger . log ( Level . WARNING , " Error on space connect [" + _spaceName + "] state." , e ) ; } } }
called when one of the spaces in cluster connects to this space
