public BACKUP_ACTIVATION waitForStatusChange(){
  try {
    latch.await();
  }
 catch (  InterruptedException e) {
    return BACKUP_ACTIVATION.STOP;
  }
  return signal;
}

public BACKUP_ACTIVATION waitForStatusChange ( ) { try { latch . await ( ) ; } catch ( InterruptedException e ) { return BACKUP_ACTIVATION . STOP ; } return signal ; }
called by the replicating backup ( i . e . " sharednothing " backup ) to wait for the signal to fail - over or to stop .
