Package htmlpublisher.util
Class MultithreadedFileCopyHelper
java.lang.Object
htmlpublisher.util.MultithreadedFileCopyHelper
Provides copying of files from the node (controller or agent) to the
controller using multiple threads.
On the node (controller or agent) the directory and sub-directories are
scanned and all files found are collected into a temporary queue on the node.
Beside this, multiple copy-workers are started on the controller: They are calling the node (controller or agent) to copy the files to the controller. This processes takes the previously collected files from the queue on the node and transfers them to the controller.
Finally, the node (controller or agent) is requested to cleanup the queue as it is not needed anymore.
Beside this, multiple copy-workers are started on the controller: They are calling the node (controller or agent) to copy the files to the controller. This processes takes the previously collected files from the queue on the node and transfers them to the controller.
Finally, the node (controller or agent) is requested to cleanup the queue as it is not needed anymore.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
copyRecursiveTo
(FilePath archiveDir, DirScanner dirScanner, FilePath targetDir, String description, int numberOfWorkers, ExecutorService executorService, int workerTimeoutInSeconds, TaskListener listener) Copies files according to a specified scanner to the controller
-
Constructor Details
-
MultithreadedFileCopyHelper
public MultithreadedFileCopyHelper()
-
-
Method Details
-
copyRecursiveTo
public static int copyRecursiveTo(FilePath archiveDir, DirScanner dirScanner, FilePath targetDir, String description, int numberOfWorkers, ExecutorService executorService, int workerTimeoutInSeconds, TaskListener listener) throws IOException, InterruptedException, TimeoutException Copies files according to a specified scanner to the controller
-