org.jclouds.elasticstack.compute.config
Class ElasticStackComputeServiceContextModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.compute.config.BaseComputeServiceContextModule
          extended by org.jclouds.compute.config.ComputeServiceAdapterContextModule<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>
              extended by org.jclouds.elasticstack.compute.config.ElasticStackComputeServiceContextModule
All Implemented Interfaces:
com.google.inject.Module

public class ElasticStackComputeServiceContextModule
extends org.jclouds.compute.config.ComputeServiceAdapterContextModule<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>


Nested Class Summary
static class ElasticStackComputeServiceContextModule.GetDrive
           
 
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
 
Constructor Summary
ElasticStackComputeServiceContextModule()
           
 
Method Summary
protected  com.google.common.cache.LoadingCache<String,DriveInfo> cache(ElasticStackComputeServiceContextModule.GetDrive getDrive)
           
protected  void configure()
           
protected  com.google.common.base.Supplier<Map<String,WellKnownImage>> provideImages(long seconds, com.google.common.base.Supplier<List<WellKnownImage>> wellKnownImageSupplier)
           
protected  com.google.common.base.Supplier<List<WellKnownImage>> provideWellKnownImageSupplier(AtomicReference<org.jclouds.rest.AuthorizationException> authException, long seconds, WellKnownImageSupplier uncached)
           
protected  com.google.common.base.Predicate<DriveInfo> supplyDriveUnclaimed(DriveClaimed driveClaimed, org.jclouds.compute.reference.ComputeServiceConstants.Timeouts timeouts)
           
 
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, osFamilyToCredentials, provideImageExtension, provideImageMap, provideOsVersionMap, provideSecurityGroupExtension, provideSizeMap, provideTemplateOptionallyFromProperties, provideTemplateOptions, 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
 

Constructor Detail

ElasticStackComputeServiceContextModule

public ElasticStackComputeServiceContextModule()
Method Detail

configure

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

cache

@Provides
@Singleton
protected com.google.common.cache.LoadingCache<String,DriveInfo> cache(ElasticStackComputeServiceContextModule.GetDrive getDrive)

provideImages

@Singleton
@Provides
protected com.google.common.base.Supplier<Map<String,WellKnownImage>> provideImages(@Named(value="jclouds.session-interval")
                                                                                                       long seconds,
                                                                                                       com.google.common.base.Supplier<List<WellKnownImage>> wellKnownImageSupplier)
                                                                             throws IOException
Throws:
IOException

provideWellKnownImageSupplier

@Singleton
@Provides
protected com.google.common.base.Supplier<List<WellKnownImage>> provideWellKnownImageSupplier(AtomicReference<org.jclouds.rest.AuthorizationException> authException,
                                                                                                                 @Named(value="jclouds.session-interval")
                                                                                                                 long seconds,
                                                                                                                 WellKnownImageSupplier uncached)
                                                                                       throws IOException
Throws:
IOException

supplyDriveUnclaimed

@Provides
@Singleton
protected com.google.common.base.Predicate<DriveInfo> supplyDriveUnclaimed(DriveClaimed driveClaimed,
                                                                                              org.jclouds.compute.reference.ComputeServiceConstants.Timeouts timeouts)


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