org.jclouds.ec2.compute.suppliers
Class RegionAndNameToImageSupplier

java.lang.Object
  extended by org.jclouds.ec2.compute.suppliers.RegionAndNameToImageSupplier
All Implemented Interfaces:
com.google.common.base.Supplier<com.google.common.cache.Cache<RegionAndName,? extends Image>>

@Singleton
public class RegionAndNameToImageSupplier
extends Object
implements com.google.common.base.Supplier<com.google.common.cache.Cache<RegionAndName,? extends Image>>

Author:
Adrian Cole

Field Summary
protected  Logger logger
           
 
Constructor Summary
protected RegionAndNameToImageSupplier(Set<String> regions, DescribeImagesParallel describer, String[] amiOwners, EC2ImageParser parser, com.google.common.cache.CacheLoader<RegionAndName,Image> regionAndIdToImage)
           
 
Method Summary
 com.google.common.cache.Cache<RegionAndName,? 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

RegionAndNameToImageSupplier

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

get

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

getDescribeQueriesForOwnersInRegions

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

getOptionsForOwners

public DescribeImagesOptions getOptionsForOwners(String... amiOwners)


Copyright © 2009-2011 jclouds. All Rights Reserved.