public class SoftLayerComputeServiceContextModule extends ComputeServiceAdapterContextModule<SoftLayerClient,SoftLayerAsyncClient,VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>
ComputeServiceAdapterContextModule.AddDefaultCredentialsToImage, ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N,H,I,L>
Constructor and Description |
---|
SoftLayerComputeServiceContextModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
com.google.common.base.Supplier<ProductPackage> |
getProductPackage(AtomicReference<AuthorizationException> authException,
long seconds,
SoftLayerClient client,
String virtualGuestPackageName)
Many requests need the same productPackage, which is in this case the package for virtual
guests.
|
Iterable<ProductItemPrice> |
prices(String prices) |
protected TemplateBuilder |
provideTemplate(com.google.inject.Injector injector,
TemplateBuilder template) |
defineAddNodeWithTagStrategy, defineDestroyNodeStrategy, defineGetNodeMetadataStrategy, defineListNodesStrategy, defineRebootNodeStrategy, defineStartNodeStrategy, defineStopNodeStrategy, provideHardware, provideImages
indexer, provideImageMap, provideNamingConvention, provideOsVersionMap, provideSizeMap, provideTemplateOptionallyFromProperties, provideTemplateOptions, shouldParseImagesOnDemand, supplyImageCache, supplyImageCache, supplyNonParsingImageCache, supplySizeCache
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public SoftLayerComputeServiceContextModule()
protected void configure()
protected TemplateBuilder provideTemplate(com.google.inject.Injector injector, TemplateBuilder template)
provideTemplate
in class BaseComputeServiceContextModule
@Provides @Singleton public com.google.common.base.Supplier<ProductPackage> getProductPackage(AtomicReference<AuthorizationException> authException, @Named(value="jclouds.session-interval") long seconds, SoftLayerClient client, @Named(value="jclouds.softlayer.virtualguest.package-name") String virtualGuestPackageName)
@Provides @Singleton public Iterable<ProductItemPrice> prices(@Named(value="jclouds.softlayer.virtualguest.prices") String prices)
Copyright © 2009-2012 jclouds. All Rights Reserved.