org.jclouds.ec2.compute.strategy
Class DescribeImagesParallel

java.lang.Object
  extended by org.jclouds.ec2.compute.strategy.DescribeImagesParallel
All Implemented Interfaces:
com.google.common.base.Function<Iterable<Map.Entry<String,DescribeImagesOptions>>,Iterable<? extends Image>>

@Singleton
public class DescribeImagesParallel
extends Object
implements com.google.common.base.Function<Iterable<Map.Entry<String,DescribeImagesOptions>>,Iterable<? extends Image>>

Author:
Adrian Cole

Field Summary
protected  EC2AsyncClient async
           
protected  Logger logger
           
 
Constructor Summary
DescribeImagesParallel(EC2AsyncClient async, ExecutorService executor)
           
 
Method Summary
 Iterable<? extends Image> apply(Iterable<Map.Entry<String,DescribeImagesOptions>> queries)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Field Detail

logger

@Named(value="jclouds.compute")
protected Logger logger

async

protected final EC2AsyncClient async
Constructor Detail

DescribeImagesParallel

@Inject
public DescribeImagesParallel(EC2AsyncClient async,
                                     @Named(value="jclouds.user-threads")
                                     ExecutorService executor)
Method Detail

apply

public Iterable<? extends Image> apply(Iterable<Map.Entry<String,DescribeImagesOptions>> queries)
Specified by:
apply in interface com.google.common.base.Function<Iterable<Map.Entry<String,DescribeImagesOptions>>,Iterable<? extends Image>>


Copyright © 2009-2011 jclouds. All Rights Reserved.