Class NovaComputeServiceContextModule
java.lang.Object
com.google.inject.AbstractModule
org.jclouds.compute.config.BaseComputeServiceContextModule
org.jclouds.compute.config.ComputeServiceAdapterContextModule<ServerInRegion,FlavorInRegion,ImageInRegion,org.jclouds.domain.Location>
org.jclouds.openstack.nova.v2_0.compute.config.NovaComputeServiceContextModule
- All Implemented Interfaces:
com.google.inject.Module
public class NovaComputeServiceContextModule
extends ComputeServiceAdapterContextModule<ServerInRegion,FlavorInRegion,ImageInRegion,org.jclouds.domain.Location>
Module for building a compute service context for Nova
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class org.jclouds.compute.config.ComputeServiceAdapterContextModule
ComputeServiceAdapterContextModule.AddDefaultCredentialsToImage, ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N extends Object,H extends Object, I extends Object, L extends Object> 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 voidcreateLocationIndexedById(com.google.common.base.Supplier<Set<? extends org.jclouds.domain.Location>> locations) protected final com.google.common.cache.LoadingCache<RegionAndId,Iterable<? extends FloatingIpForServer>> instanceToFloatingIps(com.google.common.cache.CacheLoader<RegionAndId, Iterable<? extends FloatingIpForServer>> in) 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 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, provideImagesMethods inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
bindCredentialsOverriderFunction, guiceProvideImageExtension, guiceProvideSecurityGroupExtension, guiceProvideTemplateOptions, indexer, provideImageExtension, provideImageMap, provideOsFamilyToCredentials, provideOsVersionMap, provideSecurityGroupExtension, provideSizeMap, provideTemplateOptionallyFromProperties, shouldEagerlyParseImages, supplyImageCache, supplyNonParsingImages, supplySizeCacheMethods 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:
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,org.jclouds.domain.LoginCredentials> osFamilyToCredentials(com.google.inject.Injector injector) - Overrides:
osFamilyToCredentialsin classBaseComputeServiceContextModule
-
createLocationIndexedById
-
toPortableNodeStatus
-
toPortableImageStatus
-