private void writeEntries() { if(logger.isDebugEnabled()) { logger.debug("Catalog must be modified - writing new data"); } for(URI webLocation : webLocationToFileLocationMap.keySet()) { Collection<URI> physicalLocations = webLocationToFileLocationMap.get(webLocation); if(physicalLocations.size() > 1 && !isIgnored(webLocation)) { writeEntries(appendScheme(webLocation, CatalogEntryManager.DUPLICATE_SCHEME), physicalLocations); } else { writeEntries(webLocation, physicalLocations); } } }
private void writeEntries() { if (logger.isDebugEnabled()) { logger.debug("Catalog must be modified - writing new data"); } for (URI webLocation : webLocationToFileLocationMap.keySet()) { Collection<URI> physicalLocations = webLocationToFileLocationMap.get(webLocation); if (physicalLocations.size() > 1 && !isIgnored(webLocation)) { writeEntries(appendScheme(webLocation, CatalogEntryManager.DUPLICATE_SCHEME), physicalLocations); } else { writeEntries(webLocation, physicalLocations); } } }
private void writeEntries() { if (logger.isDebugEnabled()) { logger.debug("Catalog must be modified - writing new data"); } for (URI webLocation : webLocationToFileLocationMap.keySet()) { Collection<URI> physicalLocations = webLocationToFileLocationMap.get(webLocation); if (physicalLocations.size() > 1 && !isIgnored(webLocation)) { writeEntries(appendScheme(webLocation, CatalogEntryManager.DUPLICATE_SCHEME), physicalLocations); } else { writeEntries(webLocation, physicalLocations); } } }
private void writeEntries() { if (logger.isDebugEnabled()) { logger.debug("Catalog must be modified - writing new data"); } for (URI webLocation : webLocationToFileLocationMap.keySet()) { Collection<URI> physicalLocations = webLocationToFileLocationMap.get(webLocation); if (physicalLocations.size() > 1 && !isIgnored(webLocation)) { writeEntries(appendScheme(webLocation, CatalogEntryManager.DUPLICATE_SCHEME), physicalLocations); } else { writeEntries(webLocation, physicalLocations); } } }
public boolean update(Entry entry) { this.ge = (GroupEntry) entry; reset(); ensureLatestVersion(); try { logger.info(LogBanner.start("Starting Catalog Update")); logger.info("Update of group entry {} started at {}.", ge.getId(), new Date(timeOfCurrentUpdate)); retainEntries(); if(folder != null) { HashSet<File> nonOwlFiles = new HashSet<>(); examineDirectoryContents(folder, new HashSet<>(), nonOwlFiles, 0); if(nonOwlFiles.size() > NON_ONTOLOGY_DOCUMENT_TERMINATION_LIMIT) { logger.warn("Search for ontology documents in {} and sub-folders has been terminated as over {} non-ontology documents have been found.", folder.getAbsolutePath(), NON_ONTOLOGY_DOCUMENT_TERMINATION_LIMIT); } } if(modified) { clearEntries(); writeEntries(); } logger.info("Catalog Update Complete"); logger.info(LogBanner.end()); return modified; } finally { this.ge = null; reset(); } }
public boolean update(Entry entry) { this.ge = (GroupEntry) entry; reset(); ensureLatestVersion(); try { if (logger.isDebugEnabled()) { logger.debug("********************************* Starting Catalog Update ************************************************"); logger.debug("Update of group entry " + ge.getId() + " started at " + new Date(timeOfCurrentUpdate)); } retainEntries(); examineDiskEntries(folder, new HashSet<URI>()); if (modified) { clearEntries(); writeEntries(); } if (logger.isDebugEnabled()) { logger.debug("********************************* Catalog Update Complete ************************************************"); } return modified; } finally { this.ge = null; reset(); } }
public boolean update(Entry entry) { this.ge = (GroupEntry) entry; reset(); ensureLatestVersion(); try { if (logger.isDebugEnabled()) { logger.debug("********************************* Starting Catalog Update ************************************************"); logger.debug("Update of group entry " + ge.getId() + " started at " + new Date(timeOfCurrentUpdate)); } retainEntries(); examineDiskEntries(folder, new HashSet<URI>()); if (modified) { clearEntries(); writeEntries(); } if (logger.isDebugEnabled()) { logger.debug("********************************* Catalog Update Complete ************************************************"); } return modified; } finally { this.ge = null; reset(); } }
public boolean update(Entry entry) { this.ge = (GroupEntry) entry; reset(); ensureLatestVersion(); try { logger.debug("********************************* Starting Catalog Update ************************************************"); logger.debug("Update of group entry {} started at {}.", ge.getId(), new Date(timeOfCurrentUpdate)); retainEntries(); examineDirectoryContents(folder, new HashSet<>()); if (modified) { clearEntries(); writeEntries(); } logger.debug("********************************* Catalog Update Complete ************************************************"); return modified; } finally { this.ge = null; reset(); } }