public void safeResume() { LOGGER.info("[SYNCHRONIZER] Resuming harvester"); if (autoSelector != null) { autoSelector.safeResume(); } if (watchDog != null) { watchDog.safeResume(); } if (pool != null) { pool.safeResume(); } }
/** Shuts down harvesting engine. */ @Override public void shutdown() { if (getRunning()) { LOGGER.info("[SYNCHRONIZER] Shutting down synchronizer."); if (autoSelector != null) autoSelector.shutdown(); autoSelector = null; if (watchDog != null) watchDog.shutdown(); watchDog = null; if (pool != null) pool.shutdown(); pool = null; taskQueue = null; } else { LOGGER.info("[SYNCHRONIZER] Synchronizer shutted down already."); } }
/** Reselects harvesting sites. */ public void reselect() { LOGGER.finer("[SYNCHRONIZER] Reselects resources."); if (autoSelector != null) autoSelector.reselect(); }