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:
TemplateBuilder
Direct Known Subclasses:
AWSEC2TemplateBuilderImpl

public class EC2TemplateBuilderImpl
extends TemplateBuilderImpl

Author:
Adrian Cole

Field Summary
 
Fields inherited from class org.jclouds.compute.domain.internal.TemplateBuilderImpl
biggest, defaultLocation, defaultTemplateProvider, fastest, hardwareId, hardwares, hypervisor, imageDescription, imageId, imageName, imagePredicate, images, imageVersion, location, locations, logger, minCores, minRam, options, optionsProvider, os64Bit, osArch, osDescription, osFamily, osName, osVersion
 
Constructor Summary
protected EC2TemplateBuilderImpl(com.google.common.base.Supplier<Set<? extends Location>> locations, com.google.common.base.Supplier<Set<? extends Image>> images, com.google.common.base.Supplier<Set<? extends Hardware>> sizes, com.google.common.base.Supplier<Location> defaultLocation, javax.inject.Provider<TemplateOptions> optionsProvider, javax.inject.Provider<TemplateBuilder> defaultTemplateProvider, com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> imageMap)
           
 
Method Summary
protected  Set<? extends Image> getImages()
           
protected  Image resolveImage(Hardware size, Iterable<? extends Image> supportedImages)
           
 
Methods inherited from class org.jclouds.compute.domain.internal.TemplateBuilderImpl
any, biggest, build, fastest, fromHardware, fromImage, fromTemplate, hardwareId, hardwareSorter, hypervisorMatches, imageDescriptionMatches, imageId, imageMatches, imageNameMatches, imageVersionMatches, locationId, minCores, minRam, options, os64Bit, osArchMatches, osDescriptionMatches, osFamily, osNameMatches, osVersionMatches, resolveHardware, smallest, 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 Location>> locations,
                                        com.google.common.base.Supplier<Set<? extends Image>> images,
                                        com.google.common.base.Supplier<Set<? extends Hardware>> sizes,
                                        com.google.common.base.Supplier<Location> defaultLocation,
                                        @Named(value="DEFAULT")
                                        javax.inject.Provider<TemplateOptions> optionsProvider,
                                        @Named(value="DEFAULT")
                                        javax.inject.Provider<TemplateBuilder> defaultTemplateProvider,
                                        com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> imageMap)
Method Detail

resolveImage

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

getImages

protected Set<? extends Image> getImages()
Overrides:
getImages in class TemplateBuilderImpl


Copyright © 2009-2012 jclouds. All Rights Reserved.