Package org.hive2hive.core.processes.implementations.files.download.direct

Examples of org.hive2hive.core.processes.implementations.files.download.direct.GetLocationsList


    if (task.isDirectDownload()) {
      // first get the locations of all users having access to this file
      DownloadTaskDirect directTask = (DownloadTaskDirect) task;
      // Hint: Run it in a separate thread (not in the thread pool) because the executor does not
      // guarantee the in-order processing.
      new Thread(new GetLocationsList(directTask, dataManager)).start();

      // then download all chunks in separate threads
      for (MetaChunk chunk : task.getOpenChunks()) {
        DownloadChunkRunnableDirect runnable = new DownloadChunkRunnableDirect(directTask, chunk, messageManager,
            keyManager, fileConfig);
View Full Code Here

TOP

Related Classes of org.hive2hive.core.processes.implementations.files.download.direct.GetLocationsList

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.