/** * Stop monitoring * * @throws Exception if an error occurs initializing the observer */ public synchronized void stop() throws IOException, InterruptedException { stop(interval); }
@Override public void close() throws IOException { try { pathAlterationDetector.stop(1000); } catch (InterruptedException e) { throw new IOException(e); } } });
@Override protected void shutDown() throws IOException { try { if (this.pathAlterationDetector != null) { this.pathAlterationDetector.stop(); } } catch (InterruptedException exc) { throw new RuntimeException("Failed to stop " + ImmutableFSJobCatalog.class.getName(), exc); } super.shutDown(); }
Assert.assertTrue(fileAltered.contains(new Path("file:" + newJobConfigFile))); } finally { monitor.stop();
Assert.assertTrue(fileAltered.contains(new Path("file:" + newJobConfigFile))); } finally { detector.stop();
/** * Stop monitoring * * @throws Exception if an error occurs initializing the observer */ public synchronized void stop() throws IOException, InterruptedException { stop(interval); }
@Override public void close() throws IOException { try { pathAlterationDetector.stop(1000); } catch (InterruptedException e) { throw new IOException(e); } } });
@Override protected void shutDown() throws IOException { try { if (this.pathAlterationDetector != null) { this.pathAlterationDetector.stop(); } } catch (InterruptedException exc) { throw new RuntimeException("Failed to stop " + ImmutableFSJobCatalog.class.getName(), exc); } super.shutDown(); }