org.jclouds.aws.ec2.compute.config
Class AWSEC2ComputeServiceContextModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.compute.config.BaseComputeServiceContextModule
          extended by org.jclouds.aws.ec2.compute.config.AWSEC2ComputeServiceContextModule
All Implemented Interfaces:
com.google.inject.Module

public class AWSEC2ComputeServiceContextModule
extends BaseComputeServiceContextModule

Author:
Adrian Cole

Field Summary
 
Fields inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
authException
 
Constructor Summary
AWSEC2ComputeServiceContextModule()
           
 
Method Summary
protected  void configure()
           
protected  void installDependencies()
           
protected  com.google.common.base.Supplier<com.google.common.cache.Cache<RegionAndName,? extends Image>> provideRegionAndNameToImageSupplierCache(long seconds, AWSRegionAndNameToImageSupplier supplier)
           
protected  TemplateBuilder provideTemplate(com.google.inject.Injector injector, TemplateBuilder template)
          The default template if none is provided.
protected  TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
          With amazon linux 2011.09, ssh starts after package updates, which slows the boot process and runs us out of ssh retries (context property "jclouds.ssh.max-retries").
 
Methods inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
indexer, provideImageMap, provideNamingConvention, provideOsVersionMap, provideSizeMap, supplyImageCache, 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
 

Constructor Detail

AWSEC2ComputeServiceContextModule

public AWSEC2ComputeServiceContextModule()
Method Detail

configure

protected void configure()
Overrides:
configure in class BaseComputeServiceContextModule

installDependencies

protected void installDependencies()

provideRegionAndNameToImageSupplierCache

@Provides
@Singleton
protected com.google.common.base.Supplier<com.google.common.cache.Cache<RegionAndName,? extends Image>> provideRegionAndNameToImageSupplierCache(@Named(value="jclouds.session-interval")
                                                                                                                                                                    long seconds,
                                                                                                                                                                    AWSRegionAndNameToImageSupplier supplier)

provideTemplate

protected TemplateBuilder provideTemplate(com.google.inject.Injector injector,
                                          TemplateBuilder template)
Description copied from class: BaseComputeServiceContextModule
The default template if none is provided.

Overrides:
provideTemplate in class BaseComputeServiceContextModule

provideTemplateOptions

protected TemplateOptions provideTemplateOptions(com.google.inject.Injector injector,
                                                 TemplateOptions options)
With amazon linux 2011.09, ssh starts after package updates, which slows the boot process and runs us out of ssh retries (context property "jclouds.ssh.max-retries").

Overrides:
provideTemplateOptions in class BaseComputeServiceContextModule
See Also:
, AWSEC2PropertiesBuilder#defaultProperties


Copyright © 2009-2011 jclouds. All Rights Reserved.