public void shutdown() { LOG.info("Stopping HealthMonitor thread"); shouldRun = false; daemon.interrupt(); }
public void close() { if (pathIdCollector != null) { pathIdCollector.interrupt(); } }
public void stopTrashCleaner() { if (trashCleaner != null) { trashCleaner.interrupt(); } }
@Override public void close() { shouldRun = false; try { if (blockKeyUpdater != null) { blockKeyUpdater.daemon.interrupt(); } } catch(Exception e) { LOG.warn("Exception shutting down access key updater thread", e); } }
@Override public void close() throws IOException { try { daemon.interrupt(); } catch(Exception e) { LOG.warn("Exception shutting down key updater thread", e); } } }
/** * Trigger the currently-running Lease monitor to re-check * its leases immediately. This is for use by unit tests. */ @VisibleForTesting public void triggerMonitorCheckNow() { Preconditions.checkState(lmthread != null, "Lease monitor is not running"); lmthread.interrupt(); }
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) { } }
/** * Cleanup the resources. */ void cleanUp() { blkMovementTracker.stopTracking(); if (movementTrackerThread != null) { movementTrackerThread.interrupt(); } } }
void stop() { fsRunning = false; if(timerThread == null) return; timerThread.interrupt(); try { timerThread.join(3000); } catch (InterruptedException ie) { } }
/** * Sets running flag to false. Also, this will interrupt monitor thread and * clear all the queued up tasks. */ public synchronized void stop() { monitorRunning = false; if (timerThread != null) { timerThread.interrupt(); } this.clearQueues(); }
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; } } }
void close() { assert namesystem.hasWriteLock() : "Closing bmSafeMode needs write lock!"; try { smmthread.interrupt(); smmthread.join(3000); } catch (InterruptedException ignored) { } }
void stopSync() { shouldSync = false; // Delete the edits.sync directory File editsSyncDir = journal.getStorage().getEditsSyncDir(); if (editsSyncDir.exists()) { FileUtil.fullyDelete(editsSyncDir); } if (syncJournalDaemon != null) { syncJournalDaemon.interrupt(); } }
@Override public synchronized void stop(boolean forceStop) { isRunning = false; if (storagePolicySatisfierThread == null) { return; } storageMovementNeeded.close(); storagePolicySatisfierThread.interrupt(); this.storageMovementsMonitor.stop(); if (forceStop) { storageMovementNeeded.clearQueuesWithNotification(); } else { LOG.info("Stopping StoragePolicySatisfier."); } }
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"); } } }