Esempio n. 1
0
 public void safeResume() {
   LOGGER.info("[SYNCHRONIZER] Resuming harvester");
   if (autoSelector != null) {
     autoSelector.safeResume();
   }
   if (watchDog != null) {
     watchDog.safeResume();
   }
   if (pool != null) {
     pool.safeResume();
   }
 }
Esempio n. 2
0
 /** 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.");
   }
 }
Esempio n. 3
0
 /** Reselects harvesting sites. */
 public void reselect() {
   LOGGER.finer("[SYNCHRONIZER] Reselects resources.");
   if (autoSelector != null) autoSelector.reselect();
 }