org.jclouds.openstack.nova.v2_0.compute.config
Class NovaComputeServiceContextModule
java.lang.Object
com.google.inject.AbstractModule
org.jclouds.compute.config.BaseComputeServiceContextModule
org.jclouds.compute.config.ComputeServiceAdapterContextModule<ServerInZone,FlavorInZone,ImageInZone,Location>
org.jclouds.openstack.nova.v2_0.compute.config.NovaComputeServiceContextModule
- All Implemented Interfaces:
- com.google.inject.Module
- Direct Known Subclasses:
- CloudServersUSComputeServiceContextModule, HPCloudComputeServiceContextModule, TryStackNovaServiceContextModule
public class NovaComputeServiceContextModule
- extends ComputeServiceAdapterContextModule<ServerInZone,FlavorInZone,ImageInZone,Location>
Module for building a compute service context for Nova
- Author:
- Matt Stephenson
|
Method Summary |
protected void |
configure()
|
protected com.google.common.base.Supplier<Map<String,Location>> |
createLocationIndexedById(com.google.common.base.Supplier<Set<? extends Location>> locations)
|
protected com.google.common.cache.LoadingCache<ZoneAndId,Iterable<FloatingIP>> |
instanceToFloatingIps(com.google.common.cache.CacheLoader<ZoneAndId,Iterable<FloatingIP>> in)
|
protected com.google.common.cache.LoadingCache<ZoneAndName,KeyPair> |
keyPairMap(com.google.common.cache.CacheLoader<ZoneAndName,KeyPair> in)
|
protected Map<OsFamily,LoginCredentials> |
osFamilyToCredentials(com.google.inject.Injector injector)
|
protected com.google.common.base.Optional<ImageExtension> |
provideImageExtension(com.google.inject.Injector i)
|
protected TemplateOptions |
provideTemplateOptions(com.google.inject.Injector injector,
TemplateOptions options)
The default options if none are provided. |
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,Image.Status> |
toPortableImageStatus()
|
protected Map<Server.Status,NodeMetadata.Status> |
toPortableNodeStatus()
|
| 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 |
toPortableNodeStatus
public static final Map<Server.Status,NodeMetadata.Status> toPortableNodeStatus
toPortableImageStatus
public static final Map<Image.Status,Image.Status> toPortableImageStatus
NovaComputeServiceContextModule
public NovaComputeServiceContextModule()
configure
protected void configure()
- Overrides:
configure in class BaseComputeServiceContextModule
provideTemplateOptions
protected TemplateOptions provideTemplateOptions(com.google.inject.Injector injector,
TemplateOptions options)
- Description copied from class:
BaseComputeServiceContextModule
- The default options if none are provided.
- Overrides:
provideTemplateOptions in class BaseComputeServiceContextModule
instanceToFloatingIps
@Provides
@Singleton
@Named(value="FLOATINGIP")
protected com.google.common.cache.LoadingCache<ZoneAndId,Iterable<FloatingIP>> instanceToFloatingIps(@Named(value="FLOATINGIP")
com.google.common.cache.CacheLoader<ZoneAndId,Iterable<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<OsFamily,LoginCredentials> osFamilyToCredentials(com.google.inject.Injector injector)
- Overrides:
osFamilyToCredentials in class BaseComputeServiceContextModule
securityGroupEventualConsistencyDelay
@Provides
@Singleton
@Named(value="jclouds.openstack-nova.timeout.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,Location>> createLocationIndexedById(com.google.common.base.Supplier<Set<? extends Location>> locations)
toPortableNodeStatus
@Singleton
@Provides
protected Map<Server.Status,NodeMetadata.Status> toPortableNodeStatus()
toPortableImageStatus
@Singleton
@Provides
protected Map<Image.Status,Image.Status> toPortableImageStatus()
provideImageExtension
protected com.google.common.base.Optional<ImageExtension> provideImageExtension(com.google.inject.Injector i)
- Overrides:
provideImageExtension in class BaseComputeServiceContextModule
Copyright © 2009-2012 jclouds. All Rights Reserved.