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 ClassesModifier and TypeClassDescriptionstatic class
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
FieldsModifier and TypeFieldDescriptionstatic final Map
<Image.Status, Image.Status> static final Map
<Server.Status, NodeMetadata.Status> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createLocationIndexedById
(com.google.common.base.Supplier<Set<? extends Location>> locations) protected final 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 TemplateOptions
provideTemplateOptions
(com.google.inject.Injector injector, TemplateOptions options) protected final com.google.common.cache.LoadingCache
<RegionAndName, SecurityGroup> securityGroupMap
(com.google.common.cache.CacheLoader<RegionAndName, SecurityGroup> in) protected final Map
<Image.Status, Image.Status> protected final Map
<Server.Status, NodeMetadata.Status> 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, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Field Details
-
toPortableNodeStatus
-
toPortableImageStatus
-
-
Constructor Details
-
NovaComputeServiceContextModule
public NovaComputeServiceContextModule()
-
-
Method Details
-
configure
protected void configure()- Overrides:
configure
in classBaseComputeServiceContextModule
-
provideTemplateOptions
protected TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options) - Overrides:
provideTemplateOptions
in 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
- Overrides:
osFamilyToCredentials
in classBaseComputeServiceContextModule
-
createLocationIndexedById
-
toPortableNodeStatus
-
toPortableImageStatus
-