Class ArbitraryCpuRamTemplateBuilderImpl
- java.lang.Object
-
- org.jclouds.compute.domain.internal.TemplateBuilderImpl
-
- org.jclouds.compute.domain.internal.ArbitraryCpuRamTemplateBuilderImpl
-
- All Implemented Interfaces:
TemplateBuilder
- Direct Known Subclasses:
GoogleComputeEngineArbitraryCpuRamTemplateBuilderImpl
public class ArbitraryCpuRamTemplateBuilderImpl 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
ArbitraryCpuRamTemplateBuilderImpl(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>> hardwares, com.google.common.base.Supplier<Location> defaultLocation, javax.inject.Provider<TemplateOptions> optionsProvider, javax.inject.Provider<TemplateBuilder> defaultTemplateProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Hardware
automaticHardware(double cores, int ram, com.google.common.base.Optional<Float> diskSize)
protected Hardware
findHardwareWithId(Set<? extends Hardware> hardwaresToSearch)
protected Hardware
resolveHardware(Set<? extends Hardware> hardwarel, Iterable<? extends Image> images)
-
Methods inherited from class org.jclouds.compute.domain.internal.TemplateBuilderImpl
any, biggest, build, fastest, forceCacheReload, from, from, fromHardware, fromImage, fromTemplate, getImages, hardwareId, hardwareSorter, hypervisorMatches, imageChooser, imageChooser, imageDescriptionMatches, imageId, imageMatches, imageNameMatches, imageVersionMatches, locationId, minCores, minDisk, minRam, options, os64Bit, osArchMatches, osDescriptionMatches, osFamily, osNameMatches, osVersionMatches, resolveImage, smallest, string, throwNoSuchElementExceptionAfterLoggingHardwareIds, throwNoSuchElementExceptionAfterLoggingImageIds, toString
-
-
-
-
Constructor Detail
-
ArbitraryCpuRamTemplateBuilderImpl
@Inject protected ArbitraryCpuRamTemplateBuilderImpl(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>> hardwares, com.google.common.base.Supplier<Location> defaultLocation, @Named("DEFAULT") javax.inject.Provider<TemplateOptions> optionsProvider, @Named("DEFAULT") javax.inject.Provider<TemplateBuilder> defaultTemplateProvider)
-
-
Method Detail
-
automaticHardware
protected Hardware automaticHardware(double cores, int ram, com.google.common.base.Optional<Float> diskSize)
-
findHardwareWithId
protected Hardware findHardwareWithId(Set<? extends Hardware> hardwaresToSearch)
- Overrides:
findHardwareWithId
in classTemplateBuilderImpl
-
resolveHardware
protected Hardware resolveHardware(Set<? extends Hardware> hardwarel, Iterable<? extends Image> images)
- Overrides:
resolveHardware
in classTemplateBuilderImpl
-
-