org.jclouds.openstack.nova.v2_0.compute.config
Class NovaComputeServiceContextModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.compute.config.BaseComputeServiceContextModule
          extended by org.jclouds.compute.config.ComputeServiceAdapterContextModule<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>
              extended by 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<ServerInZone,FlavorInZone,ImageInZone,org.jclouds.domain.Location>

Module for building a compute service context for Nova


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jclouds.compute.config.ComputeServiceAdapterContextModule
org.jclouds.compute.config.ComputeServiceAdapterContextModule.AddDefaultCredentialsToImage, org.jclouds.compute.config.ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N,H,I,L>
 
Nested classes/interfaces inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
org.jclouds.compute.config.BaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl
 
Field Summary
static Map<Image.Status,org.jclouds.compute.domain.Image.Status> toPortableImageStatus
           
static Map<Server.Status,org.jclouds.compute.domain.NodeMetadata.Status> toPortableNodeStatus
           
 
Constructor Summary
NovaComputeServiceContextModule()
           
 
Method Summary
protected  void configure()
           
protected  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  com.google.common.cache.LoadingCache<ZoneAndId,Iterable<? extends FloatingIP>> instanceToFloatingIps(com.google.common.cache.CacheLoader<ZoneAndId,Iterable<? extends FloatingIP>> in)
           
protected  com.google.common.cache.LoadingCache<ZoneAndName,KeyPair> keyPairMap(com.google.common.cache.CacheLoader<ZoneAndName,KeyPair> in)
           
protected  Map<org.jclouds.compute.domain.OsFamily,org.jclouds.domain.LoginCredentials> osFamilyToCredentials(com.google.inject.Injector injector)
           
protected  com.google.common.base.Optional<org.jclouds.compute.extensions.ImageExtension> provideImageExtension(com.google.inject.Injector i)
           
protected  com.google.common.base.Optional<org.jclouds.compute.extensions.SecurityGroupExtension> provideSecurityGroupExtension(com.google.inject.Injector i)
           
protected  org.jclouds.compute.options.TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, org.jclouds.compute.options.TemplateOptions options)
           
protected  com.google.common.base.Predicate<AtomicReference<ZoneAndName>> securityGroupEventualConsistencyDelay(FindSecurityGroupWithNameAndReturnTrue in, long msDelay)
           
protected  com.google.common.cache.LoadingCache<ZoneAndName,SecurityGroupInZone> securityGroupMap(com.google.common.cache.CacheLoader<ZoneAndName,SecurityGroupInZone> in)
           
protected  Map<Image.Status,org.jclouds.compute.domain.Image.Status> toPortableImageStatus()
           
protected  Map<Server.Status,org.jclouds.compute.domain.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, indexer, provideImageMap, provideOsVersionMap, provideSizeMap, provideTemplateOptionallyFromProperties, shouldEagerlyParseImages, supplyImageCache, supplyImageCache, supplyNonParsingImageCache, supplySizeCache
 
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 Detail

NovaComputeServiceContextModule

public NovaComputeServiceContextModule()
Method Detail

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

instanceToFloatingIps

@Provides
@Singleton
@Named(value="FLOATINGIP")
protected com.google.common.cache.LoadingCache<ZoneAndId,Iterable<? extends FloatingIP>> instanceToFloatingIps(@Named(value="FLOATINGIP")
                                                                                                                                        com.google.common.cache.CacheLoader<ZoneAndId,Iterable<? extends FloatingIP>> in)

securityGroupMap

@Provides
@Singleton
protected com.google.common.cache.LoadingCache<ZoneAndName,SecurityGroupInZone> securityGroupMap(com.google.common.cache.CacheLoader<ZoneAndName,SecurityGroupInZone> 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

securityGroupEventualConsistencyDelay

@Provides
@Singleton
@Named(value="SECURITYGROUP_PRESENT")
protected com.google.common.base.Predicate<AtomicReference<ZoneAndName>> securityGroupEventualConsistencyDelay(FindSecurityGroupWithNameAndReturnTrue in,
                                                                                                                                        @Named(value="jclouds.openstack-nova.timeout.securitygroup-present")
                                                                                                                                        long msDelay)

keyPairMap

@Provides
@Singleton
protected com.google.common.cache.LoadingCache<ZoneAndName,KeyPair> keyPairMap(com.google.common.cache.CacheLoader<ZoneAndName,KeyPair> in)

createLocationIndexedById

@Provides
@Singleton
protected 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 Map<Server.Status,org.jclouds.compute.domain.NodeMetadata.Status> toPortableNodeStatus()

toPortableImageStatus

@Singleton
@Provides
protected Map<Image.Status,org.jclouds.compute.domain.Image.Status> toPortableImageStatus()

provideImageExtension

protected com.google.common.base.Optional<org.jclouds.compute.extensions.ImageExtension> provideImageExtension(com.google.inject.Injector i)
Overrides:
provideImageExtension in class org.jclouds.compute.config.BaseComputeServiceContextModule

provideSecurityGroupExtension

protected com.google.common.base.Optional<org.jclouds.compute.extensions.SecurityGroupExtension> provideSecurityGroupExtension(com.google.inject.Injector i)
Overrides:
provideSecurityGroupExtension in class org.jclouds.compute.config.BaseComputeServiceContextModule


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.