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

Constructor Summary
AWSEC2ComputeServiceContextModule()
           
 
Method Summary
protected  void configure()
           
protected  void installDependencies()
           
protected  com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> provideRegionAndNameToImageSupplierCache(RegionAndNameToImageSupplier supplier)
           
protected  com.google.common.base.Supplier<com.google.common.cache.CacheLoader<RegionAndName,Image>> provideRegionAndNameToImageSupplierCacheLoader(RegionAndIdToImage delegate)
           
protected  TemplateBuilder provideTemplate(com.google.inject.Injector injector, TemplateBuilder template)
           
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").
protected  boolean shouldParseImagesOnDemand(com.google.inject.Injector injector)
           
protected  com.google.common.base.Supplier<Set<? extends Image>> supplyNonParsingImageCache(AtomicReference<AuthorizationException> authException, long seconds, com.google.common.base.Supplier<Set<? extends Image>> imageSupplier, com.google.inject.Injector injector)
          For overriding; default impl is same as supplyImageCache(seconds, imageSupplier)
 
Methods inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
indexer, provideImageMap, provideNamingConvention, provideOsVersionMap, provideSizeMap, provideTemplateOptionallyFromProperties, supplyImageCache, 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()

shouldParseImagesOnDemand

protected boolean shouldParseImagesOnDemand(com.google.inject.Injector injector)
Overrides:
shouldParseImagesOnDemand in class BaseComputeServiceContextModule

supplyNonParsingImageCache

protected com.google.common.base.Supplier<Set<? extends Image>> supplyNonParsingImageCache(AtomicReference<AuthorizationException> authException,
                                                                                           @Named(value="jclouds.session-interval")
                                                                                           long seconds,
                                                                                           com.google.common.base.Supplier<Set<? extends Image>> imageSupplier,
                                                                                           com.google.inject.Injector injector)
Description copied from class: BaseComputeServiceContextModule
For overriding; default impl is same as supplyImageCache(seconds, imageSupplier)

Overrides:
supplyNonParsingImageCache in class BaseComputeServiceContextModule

provideRegionAndNameToImageSupplierCacheLoader

@Provides
@Singleton
protected com.google.common.base.Supplier<com.google.common.cache.CacheLoader<RegionAndName,Image>> provideRegionAndNameToImageSupplierCacheLoader(RegionAndIdToImage delegate)

provideRegionAndNameToImageSupplierCache

@Provides
@Singleton
protected com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> provideRegionAndNameToImageSupplierCache(RegionAndNameToImageSupplier supplier)

provideTemplate

protected TemplateBuilder provideTemplate(com.google.inject.Injector injector,
                                          TemplateBuilder template)
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-2012 jclouds. All Rights Reserved.