/*
  * 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) {
   }
 }
 /** {@inheritDocs} */
 @Override
 public void stop() {
   if (stopRequested) {
     return;
   }
   super.stop();
   if (jobMonitor != null) jobMonitor.running = false;
   if (jobMonitorThread != null) jobMonitorThread.interrupt();
 }
 /** Stop all Collector threads and wait for all to finish. */
 public void stop() {
   running = false;
   if (server != null) server.stop();
   if (aggregateDaemon != null) aggregateDaemon.interrupt();
 }
示例#4
0
 public void shutdown() {
   LOG.info("Stopping HealthMonitor thread");
   shouldRun = false;
   daemon.interrupt();
 }