Class NovaComputeServiceContextModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.jclouds.compute.config.BaseComputeServiceContextModule
-
- org.jclouds.compute.config.ComputeServiceAdapterContextModule<ServerInRegion,FlavorInRegion,ImageInRegion,Location>
-
- org.jclouds.openstack.nova.v2_0.compute.config.NovaComputeServiceContextModule
-
- All Implemented Interfaces:
com.google.inject.Module
- Direct Known Subclasses:
CloudServersUKComputeServiceContextModule,CloudServersUSComputeServiceContextModule
public class NovaComputeServiceContextModule extends ComputeServiceAdapterContextModule<ServerInRegion,FlavorInRegion,ImageInRegion,Location>
Module for building a compute service context for Nova
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNovaComputeServiceContextModule.SecurityGroupExtensionProvider-
Nested classes/interfaces inherited from class org.jclouds.compute.config.ComputeServiceAdapterContextModule
ComputeServiceAdapterContextModule.AddDefaultCredentialsToImage, ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N,H,I,L>
-
Nested classes/interfaces inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
BaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl
-
-
Field Summary
Fields Modifier and Type Field Description static Map<Image.Status,Image.Status>toPortableImageStatusstatic Map<Server.Status,NodeMetadata.Status>toPortableNodeStatus
-
Constructor Summary
Constructors Constructor Description NovaComputeServiceContextModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure()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 FloatingIpForServer>>instanceToFloatingIps(com.google.common.cache.CacheLoader<RegionAndId,Iterable<? extends FloatingIpForServer>> in)protected Map<OsFamily,LoginCredentials>osFamilyToCredentials(com.google.inject.Injector injector)protected com.google.common.base.Predicate<RegionAndId>provideServerRunningPredicate(NovaApi api, ComputeServiceConstants.Timeouts timeouts, ComputeServiceConstants.PollPeriod pollPeriod)protected com.google.common.base.Predicate<RegionAndId>provideServerTerminatedPredicate(NovaApi api, ComputeServiceConstants.Timeouts timeouts, ComputeServiceConstants.PollPeriod pollPeriod)protected TemplateOptionsprovideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)protected com.google.common.cache.LoadingCache<RegionAndName,SecurityGroup>securityGroupMap(com.google.common.cache.CacheLoader<RegionAndName,SecurityGroup> in)protected Map<Image.Status,Image.Status>toPortableImageStatus()protected Map<Server.Status,NodeMetadata.Status>toPortableNodeStatus()-
Methods inherited from class org.jclouds.compute.config.ComputeServiceAdapterContextModule
defineAddNodeWithTagStrategy, defineDestroyNodeStrategy, defineGetImageStrategy, defineGetNodeMetadataStrategy, defineListNodesStrategy, defineRebootNodeStrategy, defineStartNodeStrategy, defineStopNodeStrategy, provideHardware, provideImages
-
Methods inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
bindCredentialsOverriderFunction, guiceProvideImageExtension, guiceProvideSecurityGroupExtension, guiceProvideTemplateOptions, indexer, provideImageExtension, provideImageMap, provideOsFamilyToCredentials, provideOsVersionMap, provideSecurityGroupExtension, provideSizeMap, provideTemplateOptionallyFromProperties, shouldEagerlyParseImages, supplyImageCache, supplyNonParsingImages, 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
-
-
-
-
Field Detail
-
toPortableNodeStatus
public static final Map<Server.Status,NodeMetadata.Status> toPortableNodeStatus
-
toPortableImageStatus
public static final Map<Image.Status,Image.Status> toPortableImageStatus
-
-
Method Detail
-
configure
protected void configure()
- Overrides:
configurein classBaseComputeServiceContextModule
-
provideTemplateOptions
protected TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
- Overrides:
provideTemplateOptionsin classBaseComputeServiceContextModule
-
provideServerRunningPredicate
@Provides protected com.google.common.base.Predicate<RegionAndId> provideServerRunningPredicate(NovaApi api, ComputeServiceConstants.Timeouts timeouts, ComputeServiceConstants.PollPeriod pollPeriod)
-
provideServerTerminatedPredicate
@Provides protected com.google.common.base.Predicate<RegionAndId> provideServerTerminatedPredicate(NovaApi api, ComputeServiceConstants.Timeouts timeouts, ComputeServiceConstants.PollPeriod pollPeriod)
-
instanceToFloatingIps
@Provides @Singleton @Named("FLOATINGIP") protected final com.google.common.cache.LoadingCache<RegionAndId,Iterable<? extends FloatingIpForServer>> instanceToFloatingIps(@Named("FLOATINGIP") com.google.common.cache.CacheLoader<RegionAndId,Iterable<? extends FloatingIpForServer>> in)
-
securityGroupMap
@Provides @Singleton protected final com.google.common.cache.LoadingCache<RegionAndName,SecurityGroup> securityGroupMap(com.google.common.cache.CacheLoader<RegionAndName,SecurityGroup> in)
-
osFamilyToCredentials
protected Map<OsFamily,LoginCredentials> osFamilyToCredentials(com.google.inject.Injector injector)
- Overrides:
osFamilyToCredentialsin classBaseComputeServiceContextModule
-
createLocationIndexedById
@Provides @Singleton protected final com.google.common.base.Supplier<Map<String,Location>> createLocationIndexedById(com.google.common.base.Supplier<Set<? extends Location>> locations)
-
toPortableNodeStatus
@Singleton @Provides protected final Map<Server.Status,NodeMetadata.Status> toPortableNodeStatus()
-
toPortableImageStatus
@Singleton @Provides protected final Map<Image.Status,Image.Status> toPortableImageStatus()
-
-