Package org.jclouds.compute.config
Class BaseComputeServiceContextModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.jclouds.compute.config.BaseComputeServiceContextModule
-
- All Implemented Interfaces:
com.google.inject.Module
- Direct Known Subclasses:
AWSEC2ComputeServiceContextModule
,ComputeServiceAdapterContextModule
,EC2ComputeServiceContextModule
public abstract class BaseComputeServiceContextModule extends com.google.inject.AbstractModule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl
-
Constructor Summary
Constructors Constructor Description BaseComputeServiceContextModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
bindCredentialsOverriderFunction()
protected void
configure()
com.google.common.base.Optional<ImageExtension>
guiceProvideImageExtension(com.google.inject.Injector i)
protected com.google.common.base.Optional<SecurityGroupExtension>
guiceProvideSecurityGroupExtension(com.google.inject.Injector i)
protected TemplateOptions
guiceProvideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
The default options if none are provided.protected com.google.common.base.Function<ComputeMetadata,String>
indexer()
protected Map<OsFamily,LoginCredentials>
osFamilyToCredentials(com.google.inject.Injector injector)
protected com.google.common.base.Optional<ImageExtension>
provideImageExtension(com.google.inject.Injector i)
protected com.google.common.base.Supplier<Map<String,? extends Image>>
provideImageMap(com.google.common.base.Supplier<Set<? extends Image>> images)
protected Map<OsFamily,LoginCredentials>
provideOsFamilyToCredentials(com.google.inject.Injector injector)
Map<OsFamily,Map<String,String>>
provideOsVersionMap(ComputeServiceConstants.ReferenceData data, Json json)
protected com.google.common.base.Optional<SecurityGroupExtension>
provideSecurityGroupExtension(com.google.inject.Injector i)
protected com.google.common.base.Supplier<Map<String,? extends Hardware>>
provideSizeMap(com.google.common.base.Supplier<Set<? extends Hardware>> sizes)
protected TemplateBuilder
provideTemplateOptionallyFromProperties(com.google.inject.Injector injector, TemplateBuilder template, String provider, ValueOfConfigurationKeyOrNull config)
The default template if none is provided.protected TemplateOptions
provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
protected boolean
shouldEagerlyParseImages(com.google.inject.Injector injector)
protected com.google.common.base.Supplier<Set<? extends Image>>
supplyImageCache(AtomicReference<AuthorizationException> authException, long seconds, com.google.common.base.Supplier<Set<? extends Image>> imageSupplier, com.google.inject.Provider<GetImageStrategy> imageLoader, 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.protected com.google.common.base.Supplier<Set<? extends Hardware>>
supplySizeCache(AtomicReference<AuthorizationException> authException, long seconds, com.google.common.base.Supplier<Set<? extends Hardware>> hardwareSupplier)
-
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 classcom.google.inject.AbstractModule
-
bindCredentialsOverriderFunction
protected void bindCredentialsOverriderFunction()
-
provideOsVersionMap
@Provides @Singleton public final Map<OsFamily,Map<String,String>> provideOsVersionMap(ComputeServiceConstants.ReferenceData data, Json json)
-
provideTemplateOptionallyFromProperties
@Provides @Named("DEFAULT") protected final TemplateBuilder provideTemplateOptionallyFromProperties(com.google.inject.Injector injector, TemplateBuilder template, String provider, ValueOfConfigurationKeyOrNull config)
The default template if none is provided.
-
provideOsFamilyToCredentials
@Provides @Singleton protected final Map<OsFamily,LoginCredentials> provideOsFamilyToCredentials(com.google.inject.Injector injector)
-
osFamilyToCredentials
protected Map<OsFamily,LoginCredentials> osFamilyToCredentials(com.google.inject.Injector injector)
-
guiceProvideTemplateOptions
@Provides @Named("DEFAULT") protected final TemplateOptions guiceProvideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
The default options if none are provided.
-
provideTemplateOptions
protected TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
-
provideImageMap
@Provides @Singleton protected final com.google.common.base.Supplier<Map<String,? extends Image>> provideImageMap(com.google.common.base.Supplier<Set<? extends Image>> images)
-
supplyImageCache
@Provides @Singleton protected final com.google.common.base.Supplier<Set<? extends Image>> supplyImageCache(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, com.google.common.base.Supplier<Set<? extends Image>> imageSupplier, com.google.inject.Provider<GetImageStrategy> imageLoader, com.google.inject.Injector injector)
-
shouldEagerlyParseImages
protected boolean shouldEagerlyParseImages(com.google.inject.Injector injector)
-
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)
For overriding; default impl just returns the image supplier.
-
provideSizeMap
@Provides @Singleton protected final com.google.common.base.Supplier<Map<String,? extends Hardware>> provideSizeMap(com.google.common.base.Supplier<Set<? extends Hardware>> sizes)
-
supplySizeCache
@Provides @Singleton protected final com.google.common.base.Supplier<Set<? extends Hardware>> supplySizeCache(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, com.google.common.base.Supplier<Set<? extends Hardware>> hardwareSupplier)
-
indexer
@Provides @Singleton protected final com.google.common.base.Function<ComputeMetadata,String> indexer()
-
guiceProvideImageExtension
@Provides @Singleton public final com.google.common.base.Optional<ImageExtension> guiceProvideImageExtension(com.google.inject.Injector i)
-
guiceProvideSecurityGroupExtension
@Provides @Singleton protected final com.google.common.base.Optional<SecurityGroupExtension> guiceProvideSecurityGroupExtension(com.google.inject.Injector i)
-
provideImageExtension
protected com.google.common.base.Optional<ImageExtension> provideImageExtension(com.google.inject.Injector i)
-
provideSecurityGroupExtension
protected com.google.common.base.Optional<SecurityGroupExtension> provideSecurityGroupExtension(com.google.inject.Injector i)
-
-