org.jclouds.ec2.compute.internal
Class EC2TemplateBuilderImpl

java.lang.Object
  extended by org.jclouds.compute.domain.internal.TemplateBuilderImpl
      extended by org.jclouds.ec2.compute.internal.EC2TemplateBuilderImpl
All Implemented Interfaces:
org.jclouds.compute.domain.TemplateBuilder

public class EC2TemplateBuilderImpl
extends org.jclouds.compute.domain.internal.TemplateBuilderImpl


Field Summary
 
Fields inherited from class org.jclouds.compute.domain.internal.TemplateBuilderImpl
biggest, defaultLocation, defaultTemplateProvider, fastest, getImageStrategy, hardwareId, hardwares, hypervisor, imageChooser, imageDescription, imageId, imageName, imagePredicate, images, imageVersion, location, locations, logger, minCores, minDisk, minRam, options, optionsProvider, os64Bit, osArch, osDescription, osFamily, osName, osVersion
 
Constructor Summary
protected EC2TemplateBuilderImpl(com.google.common.base.Supplier<Set<? extends org.jclouds.domain.Location>> locations, org.jclouds.compute.suppliers.ImageCacheSupplier images, com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Hardware>> sizes, com.google.common.base.Supplier<org.jclouds.domain.Location> defaultLocation, javax.inject.Provider<org.jclouds.compute.options.TemplateOptions> optionsProvider, javax.inject.Provider<org.jclouds.compute.domain.TemplateBuilder> defaultTemplateProvider, org.jclouds.compute.strategy.GetImageStrategy getImageStrategy, com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends org.jclouds.compute.domain.Image>> imageMap)
           
 
Method Summary
protected  Set<? extends org.jclouds.compute.domain.Image> getImages()
           
protected  org.jclouds.compute.domain.Image resolveImage(org.jclouds.compute.domain.Hardware size, Iterable<? extends org.jclouds.compute.domain.Image> supportedImages)
           
 
Methods inherited from class org.jclouds.compute.domain.internal.TemplateBuilderImpl
any, biggest, build, fastest, from, from, fromHardware, fromImage, fromTemplate, hardwareId, hardwareSorter, hypervisorMatches, imageChooser, imageChooser, imageDescriptionMatches, imageId, imageMatches, imageNameMatches, imageVersionMatches, locationId, minCores, minDisk, minRam, options, os64Bit, osArchMatches, osDescriptionMatches, osFamily, osNameMatches, osVersionMatches, resolveHardware, smallest, string, throwNoSuchElementExceptionAfterLoggingHardwareIds, throwNoSuchElementExceptionAfterLoggingImageIds, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EC2TemplateBuilderImpl

@Inject
protected EC2TemplateBuilderImpl(com.google.common.base.Supplier<Set<? extends org.jclouds.domain.Location>> locations,
                                        org.jclouds.compute.suppliers.ImageCacheSupplier images,
                                        com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Hardware>> sizes,
                                        com.google.common.base.Supplier<org.jclouds.domain.Location> defaultLocation,
                                        @Named(value="DEFAULT")
                                        javax.inject.Provider<org.jclouds.compute.options.TemplateOptions> optionsProvider,
                                        @Named(value="DEFAULT")
                                        javax.inject.Provider<org.jclouds.compute.domain.TemplateBuilder> defaultTemplateProvider,
                                        org.jclouds.compute.strategy.GetImageStrategy getImageStrategy,
                                        com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends org.jclouds.compute.domain.Image>> imageMap)
Method Detail

resolveImage

protected org.jclouds.compute.domain.Image resolveImage(org.jclouds.compute.domain.Hardware size,
                                                        Iterable<? extends org.jclouds.compute.domain.Image> supportedImages)
Overrides:
resolveImage in class org.jclouds.compute.domain.internal.TemplateBuilderImpl
Throws:
NoSuchElementException - if the image is not found

getImages

protected Set<? extends org.jclouds.compute.domain.Image> getImages()
Overrides:
getImages in class org.jclouds.compute.domain.internal.TemplateBuilderImpl


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.