Class AWSEC2ComputeServiceContextModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.jclouds.compute.config.BaseComputeServiceContextModule
-
- org.jclouds.aws.ec2.compute.config.AWSEC2ComputeServiceContextModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class AWSEC2ComputeServiceContextModule extends BaseComputeServiceContextModule
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
BaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl
-
-
Constructor Summary
Constructors Constructor Description AWSEC2ComputeServiceContextModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure()
protected com.google.common.base.Supplier<com.google.common.cache.CacheLoader<RegionAndName,Image>>
guiceProvideRegionAndNameToImageSupplierCacheLoader(RegionAndIdToImage delegate)
protected void
installDependencies()
protected com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>>
provideRegionAndNameToImageSupplierCache(RegionAndNameToImageSupplier supplier)
protected com.google.common.base.Supplier<com.google.common.cache.CacheLoader<RegionAndName,Image>>
provideRegionAndNameToImageSupplierCacheLoader(RegionAndIdToImage delegate)
protected TemplateOptions
provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
With amazon linux 2011.09, ssh starts after package updates, which slows the boot process and runs us out of ssh retries (context property"jclouds.ssh.max-retries"
).protected boolean
shouldEagerlyParseImages(com.google.inject.Injector injector)
protected com.google.common.base.Supplier<Set<? extends Image>>
supplyNonParsingImages(com.google.common.base.Supplier<Set<? extends Image>> imageSupplier, com.google.inject.Injector injector)
For overriding; default impl just returns the image supplier.-
Methods inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
bindCredentialsOverriderFunction, guiceProvideImageExtension, guiceProvideSecurityGroupExtension, guiceProvideTemplateOptions, indexer, osFamilyToCredentials, provideImageExtension, provideImageMap, provideOsFamilyToCredentials, provideOsVersionMap, provideSecurityGroupExtension, provideSizeMap, provideTemplateOptionallyFromProperties, supplyImageCache, supplySizeCache
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Method Detail
-
configure
protected void configure()
- Overrides:
configure
in classBaseComputeServiceContextModule
-
installDependencies
protected void installDependencies()
-
shouldEagerlyParseImages
protected boolean shouldEagerlyParseImages(com.google.inject.Injector injector)
- Overrides:
shouldEagerlyParseImages
in classBaseComputeServiceContextModule
-
supplyNonParsingImages
protected com.google.common.base.Supplier<Set<? extends Image>> supplyNonParsingImages(com.google.common.base.Supplier<Set<? extends Image>> imageSupplier, com.google.inject.Injector injector)
Description copied from class:BaseComputeServiceContextModule
For overriding; default impl just returns the image supplier.- Overrides:
supplyNonParsingImages
in classBaseComputeServiceContextModule
-
guiceProvideRegionAndNameToImageSupplierCacheLoader
@Provides @Singleton protected final com.google.common.base.Supplier<com.google.common.cache.CacheLoader<RegionAndName,Image>> guiceProvideRegionAndNameToImageSupplierCacheLoader(RegionAndIdToImage delegate)
-
provideRegionAndNameToImageSupplierCacheLoader
protected com.google.common.base.Supplier<com.google.common.cache.CacheLoader<RegionAndName,Image>> provideRegionAndNameToImageSupplierCacheLoader(RegionAndIdToImage delegate)
-
provideRegionAndNameToImageSupplierCache
@Provides @Singleton protected final com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> provideRegionAndNameToImageSupplierCache(RegionAndNameToImageSupplier supplier)
-
provideTemplateOptions
protected TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
With amazon linux 2011.09, ssh starts after package updates, which slows the boot process and runs us out of ssh retries (context property"jclouds.ssh.max-retries"
).- Overrides:
provideTemplateOptions
in classBaseComputeServiceContextModule
- See Also:
- ,
AWSEC2PropertiesBuilder#defaultProperties
-
-