void join() throws InterruptedException { daemon.join(); }
/** * Join main SPS thread. */ public void join() throws InterruptedException { storagePolicySatisfierThread.join(); }
void stop() { fsRunning = false; if(timerThread == null) return; timerThread.interrupt(); try { timerThread.join(3000); } catch (InterruptedException ie) { } }
void stopMonitor() { if (lmthread != null) { shouldRunMonitor = false; try { lmthread.interrupt(); lmthread.join(3000); } catch (InterruptedException ie) { LOG.warn("Encountered exception ", ie); } lmthread = null; } }
void close() { heartbeatThread.interrupt(); try { // This will no effect if the thread hasn't yet been started. heartbeatThread.join(3000); } catch (InterruptedException ignored) { } }
public void shutdownAndWait() { shouldRun = false; slowDiskDetectionDaemon.interrupt(); try { slowDiskDetectionDaemon.join(); } catch (InterruptedException e) { LOG.error("Disk Outlier Detection daemon did not shutdown", e); } }
private void stopReconstructionInitializer() { if (reconstructionQueuesInitializer != null) { reconstructionQueuesInitializer.interrupt(); try { reconstructionQueuesInitializer.join(); } catch (final InterruptedException e) { LOG.warn("Interrupted while waiting for " + "reconstructionQueueInitializer. Returning.."); return; } finally { reconstructionQueuesInitializer = null; } } }
/** * Timed wait to stop monitor thread. */ synchronized void stopGracefully() { if (timerThread == null) { return; } if (monitorRunning) { stop(); } try { timerThread.join(3000); } catch (InterruptedException ie) { } }
void close() { assert namesystem.hasWriteLock() : "Closing bmSafeMode needs write lock!"; try { smmthread.interrupt(); smmthread.join(3000); } catch (InterruptedException ignored) { } }
@Override public synchronized void stopGracefully() { if (isRunning) { stop(false); } if (this.storageMovementsMonitor != null) { this.storageMovementsMonitor.stopGracefully(); } if (storagePolicySatisfierThread != null) { try { storagePolicySatisfierThread.join(3000); } catch (InterruptedException ie) { if (LOG.isDebugEnabled()) { LOG.debug("Interrupted Exception while waiting to join sps thread," + " ignoring it", ie); } } } }
public void close() { if (getSPSManager() != null) { getSPSManager().stop(); } bmSafeMode.close(); try { redundancyThread.interrupt(); storageInfoDefragmenterThread.interrupt(); blockReportThread.interrupt(); redundancyThread.join(3000); storageInfoDefragmenterThread.join(3000); blockReportThread.join(3000); } catch (InterruptedException ie) { } datanodeManager.close(); pendingReconstruction.stop(); blocksMap.close(); }
@Override // FsDatasetSpi public void shutdown() { fsRunning = false; if (lazyWriter != null) { ((LazyWriter) lazyWriter.getRunnable()).stop(); lazyWriter.interrupt(); } if (mbeanName != null) { MBeans.unregister(mbeanName); } if (asyncDiskService != null) { asyncDiskService.shutdown(); } if (asyncLazyPersistService != null) { asyncLazyPersistService.shutdown(); } if(volumes != null) { volumes.shutdown(); } if (lazyWriter != null) { try { lazyWriter.join(); } catch (InterruptedException ie) { LOG.warn("FsDatasetImpl.shutdown ignoring InterruptedException " + "from LazyWriter.join"); } } }
daemon.start(); try { daemon.join(); } catch (InterruptedException e) { throw new IOException(
responder.join(joinTimeout); if (responder.isAlive()) { String msg = "Join on responder thread " + responder
void stop() { fsRunning = false; if(timerThread == null) return; timerThread.interrupt(); try { timerThread.join(3000); } catch (InterruptedException ie) { } }
void stop() { fsRunning = false; timerThread.interrupt(); try { timerThread.join(3000); } catch (InterruptedException ie) { } }
void stop() { fsRunning = false; if(timerThread == null) return; timerThread.interrupt(); try { timerThread.join(3000); } catch (InterruptedException ie) { } }
void stopMonitor() { if (lmthread != null) { shouldRunMonitor = false; try { lmthread.interrupt(); lmthread.join(3000); } catch (InterruptedException ie) { LOG.warn("Encountered exception ", ie); } lmthread = null; } }
void stopMonitor() { if (lmthread != null) { shouldRunMonitor = false; try { lmthread.interrupt(); lmthread.join(3000); } catch (InterruptedException ie) { LOG.warn("Encountered exception ", ie); } lmthread = null; } }