org.jclouds.compute.config
Class ComputeServiceAdapterContextModule<N,H,I,L>

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.compute.config.BaseComputeServiceContextModule
          extended by org.jclouds.compute.config.ComputeServiceAdapterContextModule<N,H,I,L>
All Implemented Interfaces:
com.google.inject.Module
Direct Known Subclasses:
JCloudsNativeComputeServiceAdapterContextModule

public class ComputeServiceAdapterContextModule<N,H,I,L>
extends BaseComputeServiceContextModule


Nested Class Summary
static class ComputeServiceAdapterContextModule.AddDefaultCredentialsToImage
           
static class ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N,H,I,L>
          install this, if you want to use your computeservice adapter to handle locations.
 
Nested classes/interfaces inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
BaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl
 
Constructor Summary
ComputeServiceAdapterContextModule()
           
 
Method Summary
protected  CreateNodeWithGroupEncodedIntoName defineAddNodeWithTagStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)
           
protected  DestroyNodeStrategy defineDestroyNodeStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)
           
protected  GetImageStrategy defineGetImageStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)
           
protected  GetNodeMetadataStrategy defineGetNodeMetadataStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)
           
protected  ListNodesStrategy defineListNodesStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)
           
protected  RebootNodeStrategy defineRebootNodeStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)
           
protected  ResumeNodeStrategy defineStartNodeStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)
           
protected  SuspendNodeStrategy defineStopNodeStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)
           
protected  com.google.common.base.Supplier<Set<? extends Hardware>> provideHardware(ComputeServiceAdapter<N,H,I,L> adapter, com.google.common.base.Function<H,Hardware> transformer)
           
protected  com.google.common.base.Supplier<Set<? extends Image>> provideImages(ComputeServiceAdapter<N,H,I,L> adapter, com.google.common.base.Function<I,Image> transformer, ComputeServiceAdapterContextModule.AddDefaultCredentialsToImage addDefaultCredentialsToImage)
           
 
Methods inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
bindCredentialsOverriderFunction, configure, 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

ComputeServiceAdapterContextModule

public ComputeServiceAdapterContextModule()
Method Detail

provideHardware

@Provides
@Singleton
protected com.google.common.base.Supplier<Set<? extends Hardware>> provideHardware(ComputeServiceAdapter<N,H,I,L> adapter,
                                                                                                      com.google.common.base.Function<H,Hardware> transformer)

provideImages

@Provides
@Singleton
protected com.google.common.base.Supplier<Set<? extends Image>> provideImages(ComputeServiceAdapter<N,H,I,L> adapter,
                                                                                                 com.google.common.base.Function<I,Image> transformer,
                                                                                                 ComputeServiceAdapterContextModule.AddDefaultCredentialsToImage addDefaultCredentialsToImage)

defineAddNodeWithTagStrategy

@Provides
@Singleton
protected CreateNodeWithGroupEncodedIntoName defineAddNodeWithTagStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)

defineDestroyNodeStrategy

@Provides
@Singleton
protected DestroyNodeStrategy defineDestroyNodeStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)

defineGetNodeMetadataStrategy

@Provides
@Singleton
protected GetNodeMetadataStrategy defineGetNodeMetadataStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)

defineGetImageStrategy

@Provides
@Singleton
protected GetImageStrategy defineGetImageStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)

defineListNodesStrategy

@Provides
@Singleton
protected ListNodesStrategy defineListNodesStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)

defineRebootNodeStrategy

@Provides
@Singleton
protected RebootNodeStrategy defineRebootNodeStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)

defineStartNodeStrategy

@Provides
@Singleton
protected ResumeNodeStrategy defineStartNodeStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)

defineStopNodeStrategy

@Provides
@Singleton
protected SuspendNodeStrategy defineStopNodeStrategy(AdaptingComputeServiceStrategies<N,H,I,L> in)


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