> + ExecutorService executor = Executors.newFixedThreadPool(numThreads);
> +
> + for(File f : files) {
> + BlobUploader b =
> + new BlobUploader(
> + (String) options.valueOf("username"),
> + (String) options.valueOf("password"),
> + (String) options.valueOf("provider"),
> + (String) options.valueOf("region"),
> + f);
> + executor.execute(b);
> + }
> + executor.shutdown();
> +
> + try {
> + executor.awaitTermination(1, TimeUnit.DAYS);
Long.MAX_VALUE?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/69/files#r22695107