Example #1
0
 public void processNotification(Signal notification) {
   setChanged();
   try {
     notification.acquire();
     notifyObservers(notification);
   } catch (SignalAcquireException e) {
     logger.log(Level.SEVERE, "Signal lock could not be acquired");
   } finally {
     try {
       notification.release();
     } catch (SignalReleaseException e) {
       logger.log(Level.SEVERE, "Signal lock could not be release");
     }
   }
 }
 public void processNotification(Signal notification) {
   String failedPartnerInstance = notification.getMemberToken();
   if (_logger.isLoggable(Level.FINEST)) {
     _logger.finest("Received Suspected Failure Notification: " + failedPartnerInstance);
   }
   // check and if 2nd suspected failure in 6 second window
   // then process the failure
   checkSuspectedFailureFor(failedPartnerInstance);
   // was this
   // if(!ReplicationHealthChecker.isStopping()
   //    && !ReplicationHealthChecker.isReplicationCommunicationOperational()) {
   /*
   if(!ReplicationHealthChecker.isStopping()) {
       JxtaReplicationReceiver jxtaReplicationReceiver
           = (JxtaReplicationReceiver) ReplicationHealthChecker.getReplicationReceiver();
       if (_logger.isLoggable(Level.FINEST)) {
           _logger.finest("suspected failure notification causing call to respondToFailure");
       }
       jxtaReplicationReceiver.respondToFailure(failedPartnerInstance);
   }
    */
 }