/** * Stop the redeployment if started. */ protected synchronized void shutdownRedeployment() { if (watcher != null) { watcher.close(); watcher = null; } }
/** * The watching thread runnable method. */ @Override public void run() { try { while (!closed) { if (changesHaveOccurred()) { trigger(); } // Wait for the next scan. Thread.sleep(scanPeriod); } } catch (Throwable e) { LOGGER.error("An error have been encountered while watching resources - leaving the redeploy mode", e); close(); } }
@After public void close() { watcher.close(); }
/** * Stop the redeployment if started. */ protected synchronized void shutdownRedeployment() { if (watcher != null) { watcher.close(); watcher = null; } }
/** * The watching thread runnable method. */ @Override public void run() { try { while (!closed) { if (changesHaveOccurred()) { trigger(); } // Wait for the next scan. Thread.sleep(scanPeriod); } } catch (Throwable e) { LOGGER.error("An error have been encountered while watching resources - leaving the redeploy mode", e); close(); } }
@After public void close() { watcher.close(); }