public class NovaComputeServiceContextModule extends ComputeServiceAdapterContextModule<ServerInRegion,FlavorInRegion,ImageInRegion,Location>
ComputeServiceAdapterContextModule.AddDefaultCredentialsToImage, ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N,H,I,L>
BaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl
Modifier and Type | Field and Description |
---|---|
static Map<Image.Status,Image.Status> |
toPortableImageStatus |
static Map<Server.Status,NodeMetadata.Status> |
toPortableNodeStatus |
Constructor and Description |
---|
NovaComputeServiceContextModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
protected com.google.common.base.Supplier<Map<String,Location>> |
createLocationIndexedById(com.google.common.base.Supplier<Set<? extends Location>> locations) |
protected com.google.common.cache.LoadingCache<RegionAndId,Iterable<? extends FloatingIP>> |
instanceToFloatingIps(com.google.common.cache.CacheLoader<RegionAndId,Iterable<? extends FloatingIP>> in) |
protected com.google.common.cache.LoadingCache<RegionAndName,KeyPair> |
keyPairMap(com.google.common.cache.CacheLoader<RegionAndName,KeyPair> in) |
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.Optional<SecurityGroupExtension> |
provideSecurityGroupExtension(com.google.inject.Injector i) |
protected TemplateOptions |
provideTemplateOptions(com.google.inject.Injector injector,
TemplateOptions options)
The default options if none are provided.
|
protected com.google.common.base.Predicate<AtomicReference<RegionAndName>> |
securityGroupEventualConsistencyDelay(FindSecurityGroupWithNameAndReturnTrue in,
long msDelay) |
protected com.google.common.cache.LoadingCache<RegionAndName,SecurityGroupInRegion> |
securityGroupMap(com.google.common.cache.CacheLoader<RegionAndName,SecurityGroupInRegion> in) |
protected Map<Image.Status,Image.Status> |
toPortableImageStatus() |
protected Map<Server.Status,NodeMetadata.Status> |
toPortableNodeStatus() |
defineAddNodeWithTagStrategy, defineDestroyNodeStrategy, defineGetImageStrategy, defineGetNodeMetadataStrategy, defineListNodesStrategy, defineRebootNodeStrategy, defineStartNodeStrategy, defineStopNodeStrategy, provideHardware, provideImages
bindCredentialsOverriderFunction, indexer, provideImageMap, provideOsVersionMap, provideSizeMap, provideTemplateOptionallyFromProperties, shouldEagerlyParseImages, supplyImageCache, supplyImageCache, supplyNonParsingImageCache, supplySizeCache
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public static final Map<Server.Status,NodeMetadata.Status> toPortableNodeStatus
public static final Map<Image.Status,Image.Status> toPortableImageStatus
protected void configure()
configure
in class BaseComputeServiceContextModule
protected TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
BaseComputeServiceContextModule
provideTemplateOptions
in class BaseComputeServiceContextModule
@Provides @Singleton @Named(value="FLOATINGIP") protected com.google.common.cache.LoadingCache<RegionAndId,Iterable<? extends FloatingIP>> instanceToFloatingIps(@Named(value="FLOATINGIP") com.google.common.cache.CacheLoader<RegionAndId,Iterable<? extends FloatingIP>> in)
@Provides @Singleton protected com.google.common.cache.LoadingCache<RegionAndName,SecurityGroupInRegion> securityGroupMap(com.google.common.cache.CacheLoader<RegionAndName,SecurityGroupInRegion> in)
protected Map<OsFamily,LoginCredentials> osFamilyToCredentials(com.google.inject.Injector injector)
osFamilyToCredentials
in class BaseComputeServiceContextModule
@Provides @Singleton @Named(value="SECURITYGROUP_PRESENT") protected com.google.common.base.Predicate<AtomicReference<RegionAndName>> securityGroupEventualConsistencyDelay(FindSecurityGroupWithNameAndReturnTrue in, @Named(value="jclouds.openstack-nova.timeout.securitygroup-present") long msDelay)
@Provides @Singleton protected com.google.common.cache.LoadingCache<RegionAndName,KeyPair> keyPairMap(com.google.common.cache.CacheLoader<RegionAndName,KeyPair> in)
@Provides @Singleton protected com.google.common.base.Supplier<Map<String,Location>> createLocationIndexedById(com.google.common.base.Supplier<Set<? extends Location>> locations)
@Singleton @Provides protected Map<Server.Status,NodeMetadata.Status> toPortableNodeStatus()
@Singleton @Provides protected Map<Image.Status,Image.Status> toPortableImageStatus()
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-2016 The Apache Software Foundation. All Rights Reserved.