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 org.jclouds.compute.config.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
org.jclouds.compute.config.ComputeServiceAdapterContextModule.AddDefaultCredentialsToImage, org.jclouds.compute.config.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
org.jclouds.compute.config.BaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<Image.Status,org.jclouds.compute.domain.Image.Status> static final Map<Server.Status,org.jclouds.compute.domain.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) protected Map<org.jclouds.compute.domain.OsFamily,org.jclouds.domain.LoginCredentials> osFamilyToCredentials(com.google.inject.Injector injector) protected com.google.common.base.Predicate<RegionAndId>provideServerRunningPredicate(NovaApi api, org.jclouds.compute.reference.ComputeServiceConstants.Timeouts timeouts, org.jclouds.compute.reference.ComputeServiceConstants.PollPeriod pollPeriod) protected com.google.common.base.Predicate<RegionAndId>provideServerTerminatedPredicate(NovaApi api, org.jclouds.compute.reference.ComputeServiceConstants.Timeouts timeouts, org.jclouds.compute.reference.ComputeServiceConstants.PollPeriod pollPeriod) protected org.jclouds.compute.options.TemplateOptionsprovideTemplateOptions(com.google.inject.Injector injector, org.jclouds.compute.options.TemplateOptions options) protected final com.google.common.cache.LoadingCache<RegionAndName,org.jclouds.compute.domain.SecurityGroup> securityGroupMap(com.google.common.cache.CacheLoader<RegionAndName, org.jclouds.compute.domain.SecurityGroup> in) protected final Map<Image.Status,org.jclouds.compute.domain.Image.Status> protected final Map<Server.Status,org.jclouds.compute.domain.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
public static final Map<Server.Status,org.jclouds.compute.domain.NodeMetadata.Status> toPortableNodeStatus -
toPortableImageStatus
-
-
Constructor Details
-
NovaComputeServiceContextModule
public NovaComputeServiceContextModule()
-
-
Method Details
-
configure
protected void configure()- Overrides:
configurein classorg.jclouds.compute.config.BaseComputeServiceContextModule
-
provideTemplateOptions
protected org.jclouds.compute.options.TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, org.jclouds.compute.options.TemplateOptions options) - Overrides:
provideTemplateOptionsin classorg.jclouds.compute.config.BaseComputeServiceContextModule
-
provideServerRunningPredicate
@Provides protected com.google.common.base.Predicate<RegionAndId> provideServerRunningPredicate(NovaApi api, org.jclouds.compute.reference.ComputeServiceConstants.Timeouts timeouts, org.jclouds.compute.reference.ComputeServiceConstants.PollPeriod pollPeriod) -
provideServerTerminatedPredicate
@Provides protected com.google.common.base.Predicate<RegionAndId> provideServerTerminatedPredicate(NovaApi api, org.jclouds.compute.reference.ComputeServiceConstants.Timeouts timeouts, org.jclouds.compute.reference.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,org.jclouds.compute.domain.SecurityGroup> securityGroupMap(com.google.common.cache.CacheLoader<RegionAndName, org.jclouds.compute.domain.SecurityGroup> in) -
osFamilyToCredentials
protected Map<org.jclouds.compute.domain.OsFamily,org.jclouds.domain.LoginCredentials> osFamilyToCredentials(com.google.inject.Injector injector) - Overrides:
osFamilyToCredentialsin classorg.jclouds.compute.config.BaseComputeServiceContextModule
-
createLocationIndexedById
-
toPortableNodeStatus
@Singleton @Provides protected final Map<Server.Status,org.jclouds.compute.domain.NodeMetadata.Status> toPortableNodeStatus() -
toPortableImageStatus
@Singleton @Provides protected final Map<Image.Status,org.jclouds.compute.domain.Image.Status> toPortableImageStatus()
-