public class AWSEC2ComputeServiceContextModule extends BaseComputeServiceContextModule
BaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl
Constructor and Description |
---|
AWSEC2ComputeServiceContextModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
protected void |
installDependencies() |
protected com.google.common.base.Optional<ImageExtension> |
provideImageExtension(com.google.inject.Injector i) |
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 com.google.common.base.Optional<SecurityGroupExtension> |
provideSecurityGroupExtension(com.google.inject.Injector i) |
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>> |
supplyNonParsingImageCache(AtomicReference<AuthorizationException> authException,
long seconds,
com.google.common.base.Supplier<Set<? extends Image>> imageSupplier,
com.google.inject.Injector injector)
For overriding; default impl is same as
supplyImageCache(seconds, imageSupplier) |
bindCredentialsOverriderFunction, indexer, osFamilyToCredentials, provideImageMap, provideOsVersionMap, provideSizeMap, provideTemplateOptionallyFromProperties, supplyImageCache, supplyImageCache, supplySizeCache
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected void configure()
configure
in class BaseComputeServiceContextModule
protected void installDependencies()
protected boolean shouldEagerlyParseImages(com.google.inject.Injector injector)
shouldEagerlyParseImages
in class BaseComputeServiceContextModule
protected com.google.common.base.Supplier<Set<? extends Image>> supplyNonParsingImageCache(AtomicReference<AuthorizationException> authException, @Named(value="jclouds.session-interval") long seconds, com.google.common.base.Supplier<Set<? extends Image>> imageSupplier, com.google.inject.Injector injector)
BaseComputeServiceContextModule
supplyImageCache(seconds, imageSupplier)
supplyNonParsingImageCache
in class BaseComputeServiceContextModule
@Provides @Singleton protected com.google.common.base.Supplier<com.google.common.cache.CacheLoader<RegionAndName,Image>> provideRegionAndNameToImageSupplierCacheLoader(RegionAndIdToImage delegate)
@Provides @Singleton protected com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> provideRegionAndNameToImageSupplierCache(RegionAndNameToImageSupplier supplier)
protected TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
"jclouds.ssh.max-retries"
).provideTemplateOptions
in class BaseComputeServiceContextModule
AWSEC2PropertiesBuilder#defaultProperties
protected com.google.common.base.Optional<ImageExtension> provideImageExtension(com.google.inject.Injector i)
provideImageExtension
in class BaseComputeServiceContextModule
protected com.google.common.base.Optional<SecurityGroupExtension> provideSecurityGroupExtension(com.google.inject.Injector i)
provideSecurityGroupExtension
in class BaseComputeServiceContextModule
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.