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 Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    static final Map<Image.Status,org.jclouds.compute.domain.Image.Status>
     
    static final Map<Server.Status,org.jclouds.compute.domain.NodeMetadata.Status>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected final com.google.common.base.Supplier<Map<String,org.jclouds.domain.Location>>
    createLocationIndexedById(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.TemplateOptions
    provideTemplateOptions(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, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • toPortableNodeStatus

      public static final Map<Server.Status,org.jclouds.compute.domain.NodeMetadata.Status> toPortableNodeStatus
    • toPortableImageStatus

      public static final Map<Image.Status,org.jclouds.compute.domain.Image.Status> toPortableImageStatus
  • Constructor Details

    • NovaComputeServiceContextModule

      public NovaComputeServiceContextModule()
  • Method Details

    • configure

      protected void configure()
      Overrides:
      configure in class org.jclouds.compute.config.BaseComputeServiceContextModule
    • provideTemplateOptions

      protected org.jclouds.compute.options.TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, org.jclouds.compute.options.TemplateOptions options)
      Overrides:
      provideTemplateOptions in class org.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:
      osFamilyToCredentials in class org.jclouds.compute.config.BaseComputeServiceContextModule
    • createLocationIndexedById

      @Provides @Singleton protected final com.google.common.base.Supplier<Map<String,org.jclouds.domain.Location>> createLocationIndexedById(com.google.common.base.Supplier<Set<? extends org.jclouds.domain.Location>> locations)
    • 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()