Package org.syncany.operations.daemon.messages

Examples of org.syncany.operations.daemon.messages.DownDownloadFileSyncExternalEvent


    for (DatabaseRemoteFile remoteFile : unknownRemoteDatabases) {
      File unknownRemoteDatabaseFileInCache = config.getCache().getDatabaseFile(remoteFile.getName());
      DatabaseRemoteFile unknownDatabaseRemoteFile = new DatabaseRemoteFile(remoteFile.getName());
     
      logger.log(Level.INFO, "- Downloading {0} to local cache at {1}", new Object[] { remoteFile.getName(), unknownRemoteDatabaseFileInCache });
      eventBus.post(new DownDownloadFileSyncExternalEvent(config.getLocalDir().getAbsolutePath(), "database", ++downloadFileIndex, unknownRemoteDatabases.size()));
     
      transferManager.download(unknownDatabaseRemoteFile, unknownRemoteDatabaseFileInCache);

      unknownRemoteDatabasesInCache.put(unknownRemoteDatabaseFileInCache, unknownDatabaseRemoteFile);
      result.getDownloadedUnknownDatabases().add(remoteFile.getName());
View Full Code Here


      if (localDecryptedMultiChunkFile.exists()) {
        logger.log(Level.INFO, "  + Decrypted multichunk exists locally " + multiChunkId + ". No need to download it!");
      }
      else {
        eventBus.post(new DownDownloadFileSyncExternalEvent(config.getLocalDir().getAbsolutePath(), "multichunk", multiChunkNumber,
            unknownMultiChunkIds.size()));

        logger.log(Level.INFO, "  + Downloading multichunk " + multiChunkId + " ...");
        transferManager.download(remoteMultiChunkFile, localEncryptedMultiChunkFile);
View Full Code Here

TOP

Related Classes of org.syncany.operations.daemon.messages.DownDownloadFileSyncExternalEvent

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.