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
- Author:
- Adrian Cole
Fields inherited from class org.jclouds.compute.domain.internal.TemplateBuilderImpl |
biggest, defaultLocation, defaultTemplateProvider, fastest, hardwareId, hardwares, imageDescription, imageId, imageName, imagePredicate, images, imageVersion, location, locations, logger, minCores, minRam, options, optionsProvider, os64Bit, osArch, osDescription, osFamily, osName, osVersion |
Methods inherited from class org.jclouds.compute.domain.internal.TemplateBuilderImpl |
any, biggest, build, fastest, fromHardware, fromImage, fromTemplate, hardwareId, hardwareSorter, imageDescriptionMatches, imageId, imageMatches, imageNameMatches, imageVersionMatches, locationId, minCores, minRam, options, os64Bit, osArchMatches, osDescriptionMatches, osFamily, osNameMatches, osVersionMatches, resolveSize, smallest, throwNoSuchElementExceptionAfterLoggingImageIds, toString |
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.Cache<RegionAndName,? extends Image>> imageMap)
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-2011 jclouds. All Rights Reserved.