org.jclouds.ec2.compute.suppliers
Class EC2ImageSupplier

java.lang.Object
  extended by org.jclouds.ec2.compute.suppliers.EC2ImageSupplier
All Implemented Interfaces:
com.google.common.base.Supplier<Set<? extends Image>>

@Singleton
public class EC2ImageSupplier
extends Object
implements com.google.common.base.Supplier<Set<? extends Image>>

Author:
Adrian Cole

Field Summary
protected  Logger logger
           
 
Constructor Summary
protected EC2ImageSupplier(com.google.common.base.Supplier<Set<String>> regions, DescribeImagesParallel describer, String[] amiOwners, com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> cache, EC2ImageParser parser)
           
 
Method Summary
 Set<? extends Image> get()
           
 Iterable<Map.Entry<String,DescribeImagesOptions>> getDescribeQueriesForOwnersInRegions(Set<String> regions, String[] amiOwners)
           
 DescribeImagesOptions getOptionsForOwners(String... amiOwners)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

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

EC2ImageSupplier

@Inject
protected EC2ImageSupplier(com.google.common.base.Supplier<Set<String>> regions,
                                  DescribeImagesParallel describer,
                                  @Named(value="jclouds.ec2.ami-owners")
                                  String[] amiOwners,
                                  com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> cache,
                                  EC2ImageParser parser)
Method Detail

get

public Set<? extends Image> get()
Specified by:
get in interface com.google.common.base.Supplier<Set<? extends Image>>

getDescribeQueriesForOwnersInRegions

public Iterable<Map.Entry<String,DescribeImagesOptions>> getDescribeQueriesForOwnersInRegions(Set<String> regions,
                                                                                              String[] amiOwners)

getOptionsForOwners

public DescribeImagesOptions getOptionsForOwners(String... amiOwners)


Copyright © 2009-2012 jclouds. All Rights Reserved.