Package org.syncany.config.to

Examples of org.syncany.config.to.CleanupTO


    return allDatabaseRemoteFilesMap;
  }

  private long getLastTimeCleaned() {
    try {
      CleanupTO cleanupTO = (new Persister()).read(CleanupTO.class, config.getCleanupFile());
      return cleanupTO.getLastTimeCleaned();
    }
    catch (Exception e) {
      logger.log(Level.INFO, "Something went wrong with reading cleanup.xml, assuming never cleaned." + e.getMessage());
      return 0;
    }
View Full Code Here


      return 0;
    }
  }

  private void setLastTimeCleaned(long lastTimeCleaned) {
    CleanupTO cleanupTO = new CleanupTO();
    cleanupTO.setLastTimeCleaned(lastTimeCleaned);

    try {
      logger.log(Level.INFO, "Writing cleanup.xml");
      (new Persister()).write(cleanupTO, config.getCleanupFile());
    }
View Full Code Here

TOP

Related Classes of org.syncany.config.to.CleanupTO

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.