Package org.archive.wayback.resourcestore.resourcefile

Examples of org.archive.wayback.resourcestore.resourcefile.ResourceFileLocation


   
    Iterator<ResourceFileLocation> addedItr = addedFiles.iterator();
    Iterator<ResourceFileLocation> removedItr = removedFiles.iterator();
    while(addedItr.hasNext()) {
      updated = true;
      ResourceFileLocation location = addedItr.next();
      LOGGER.info("Added " + location.getName() + " " + location.getUrl());
      db.addNameUrl(location.getName(), location.getUrl());
    }
    while(removedItr.hasNext()) {
      updated = true;
      ResourceFileLocation location = removedItr.next();
      LOGGER.info("Removed " + location.getName() + " " + location.getUrl());
      db.removeNameUrl(location.getName(), location.getUrl());
    }
    if(updated) {
      // lastly replace the state file with the new version:
      if(!current.delete()) {
        throw new IOException("Unable to delete " +
View Full Code Here

TOP

Related Classes of org.archive.wayback.resourcestore.resourcefile.ResourceFileLocation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.