/*
  * Shuts down the pending replication monitor thread. Waits for the thread
  * to exit.
  */
 void stop() {
   fsRunning = false;
   timerThread.interrupt();
   try {
     timerThread.join(3000);
   } catch (InterruptedException ie) {
   }
 }
 /** Wait for service to finish. (Normally, it runs forever.) */
 public void join() {
   try {
     if (server != null) server.join();
     if (aggregateDaemon != null) aggregateDaemon.join();
   } catch (InterruptedException ie) {
     // do nothing
   }
 }
 /** {@inheritDocs} */
 @Override
 public void join() {
   super.join();
   try {
     if (jobMonitorThread != null) jobMonitorThread.join();
   } catch (InterruptedException ie) {
     // do nothing
   }
 }
Example #4
0
 void join() throws InterruptedException {
   daemon.join();
 }