Package org.syncany.plugins.transfer.files

Examples of org.syncany.plugins.transfer.files.ActionRemoteFile


  private Timer actionRenewalTimer;

  public ActionFileHandler(TransferManager transferManager, String operationName, String machineName) {   
    try {
      this.transferManager = transferManager;
      this.actionFile = new ActionRemoteFile(operationName, machineName, System.currentTimeMillis());
      this.actionRenewalTimer = createNewActionRenewalTimer();     
    }
    catch (Exception e) {
      throw new RuntimeException(e);
    }   
View Full Code Here


 
  private synchronized void renewActionFile() {
    try {
      logger.log(Level.INFO, "Scheduling action renewal task for every " + (ACTION_RENEWAL_INTERVAL/60/1000) + " minutes, for " + actionFile + " ...");

      ActionRemoteFile oldActionFile = actionFile;     
      ActionRemoteFile newActionFile = new ActionRemoteFile(oldActionFile.getOperationName(), oldActionFile.getClientName(), System.currentTimeMillis());
     
      uploadActionFile(newActionFile);
      deleteActionFile(oldActionFile);
     
      actionFile = newActionFile;
View Full Code Here

TOP

Related Classes of org.syncany.plugins.transfer.files.ActionRemoteFile

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.