Package org.jclouds.ec2.compute.internal
Class EC2TemplateBuilderImpl
- java.lang.Object
-
- org.jclouds.compute.domain.internal.TemplateBuilderImpl
-
- org.jclouds.ec2.compute.internal.EC2TemplateBuilderImpl
-
- All Implemented Interfaces:
TemplateBuilder
- Direct Known Subclasses:
AWSEC2TemplateBuilderImpl
public class EC2TemplateBuilderImpl extends TemplateBuilderImpl
-
-
Field Summary
-
Fields inherited from class org.jclouds.compute.domain.internal.TemplateBuilderImpl
biggest, defaultLocation, defaultTemplateProvider, fastest, forceCacheReload, 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
Constructors Modifier Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, findHardwareWithId, forceCacheReload, 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
-
-
-
-
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("DEFAULT") javax.inject.Provider<TemplateOptions> optionsProvider, @Named("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 classTemplateBuilderImpl
- Throws:
NoSuchElementException
- if the image is not found
-
getImages
protected Set<? extends Image> getImages()
- Overrides:
getImages
in classTemplateBuilderImpl
-
-