/** * Check to see if its time to rescan directory, and if so, rescan and extend dataset if needed. * Note that this just calls sync(), so structural metadata may be modified (!!) * * @return true if directory was rescanned and dataset may have been updated * @throws IOException on io error */ public synchronized boolean syncExtend() throws IOException { return datasetManager.isScanNeeded() && _sync(); }
/** * Check to see if its time to rescan directory, and if so, rescan and extend dataset if needed. * Note that this just calls sync(), so structural metadata may be modified (!!) * * @return true if directory was rescanned and dataset may have been updated * @throws IOException on io error */ public synchronized boolean syncExtend() throws IOException { return datasetManager.isScanNeeded() && _sync(); }
/** * Check to see if its time to rescan directory, and if so, rescan and extend dataset if needed. * Note that this just calls sync(), so structural metadata may be modified (!!) * * @return true if directory was rescanned and dataset may have been updated * @throws IOException on io error */ public synchronized boolean syncExtend() throws IOException { return datasetManager.isScanNeeded() && _sync(); }
public synchronized boolean sync() throws IOException { return datasetManager.isScanNeeded() && _sync(); }
public long getLastModified() { try { boolean wantScan = datasetManager.isScanNeeded(); datasetManager.scanIfNeeded(); } catch (IOException e) { logger.error("Aggregation scan failed, e"); } return datasetManager.getLastChanged(); }
@Override public boolean scanIfNeeded() throws IOException { if (map == null && !isStatic()) return true; return isScanNeeded() && scan(true); }