public class CloudStackComputeServiceContextModule extends ComputeServiceAdapterContextModule<VirtualMachine,ServiceOffering,Template,Zone>
ComputeServiceAdapterContextModule.AddDefaultCredentialsToImage, ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N,H,I,L>
BaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl
Constructor and Description |
---|
CloudStackComputeServiceContextModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
com.google.common.base.Supplier<User> |
getCurrentUser(AtomicReference<AuthorizationException> authException,
long seconds,
GetCurrentUser getCurrentUser) |
protected com.google.common.cache.LoadingCache<String,Set<FirewallRule>> |
getFirewallRulesByVirtualMachine(com.google.common.cache.CacheLoader<String,Set<FirewallRule>> getFirewallRules) |
protected com.google.common.cache.LoadingCache<String,Set<IPForwardingRule>> |
getIPForwardingRulesByVirtualMachine(com.google.common.cache.CacheLoader<String,Set<IPForwardingRule>> in) |
protected com.google.common.base.Predicate<String> |
jobComplete(JobComplete jobComplete) |
protected com.google.common.cache.LoadingCache<String,SshKeyPair> |
keyPairMap(com.google.common.cache.CacheLoader<String,SshKeyPair> in) |
com.google.common.base.Supplier<Map<String,Network>> |
listNetworks(AtomicReference<AuthorizationException> authException,
long seconds,
NetworksForCurrentUser networksForCurrentUser) |
com.google.common.base.Supplier<Map<String,String>> |
listOSCategories(AtomicReference<AuthorizationException> authException,
long seconds,
CloudStackApi client) |
com.google.common.base.Supplier<Map<String,OSType>> |
listOSTypes(AtomicReference<AuthorizationException> authException,
long seconds,
CloudStackApi client) |
com.google.common.base.Supplier<Map<String,Project>> |
listProjects(AtomicReference<AuthorizationException> authException,
long seconds,
ProjectsForCurrentUser projectsForCurrentUser) |
Map<NetworkType,? extends OptionsConverter> |
optionsConverters() |
protected com.google.common.base.Optional<ImageExtension> |
provideImageExtension(com.google.inject.Injector i) |
protected com.google.common.base.Optional<SecurityGroupExtension> |
provideSecurityGroupExtension(com.google.inject.Injector i) |
protected TemplateOptions |
provideTemplateOptions(com.google.inject.Injector injector,
TemplateOptions options)
The default options if none are provided.
|
protected com.google.common.cache.LoadingCache<ZoneAndName,SecurityGroup> |
securityGroupMap(com.google.common.cache.CacheLoader<ZoneAndName,SecurityGroup> in) |
defineAddNodeWithTagStrategy, defineDestroyNodeStrategy, defineGetImageStrategy, defineGetNodeMetadataStrategy, defineListNodesStrategy, defineRebootNodeStrategy, defineStartNodeStrategy, defineStopNodeStrategy, provideHardware, provideImages
bindCredentialsOverriderFunction, indexer, osFamilyToCredentials, provideImageMap, provideOsVersionMap, provideSizeMap, provideTemplateOptionallyFromProperties, shouldEagerlyParseImages, 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 CloudStackComputeServiceContextModule()
protected void configure()
configure
in class BaseComputeServiceContextModule
protected TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
BaseComputeServiceContextModule
provideTemplateOptions
in class BaseComputeServiceContextModule
@Provides @Singleton public com.google.common.base.Supplier<Map<String,String>> listOSCategories(AtomicReference<AuthorizationException> authException, @Named(value="jclouds.session-interval") long seconds, CloudStackApi client)
@Provides @Singleton public com.google.common.base.Supplier<Map<String,OSType>> listOSTypes(AtomicReference<AuthorizationException> authException, @Named(value="jclouds.session-interval") long seconds, CloudStackApi client)
@Provides @Singleton public com.google.common.base.Supplier<Map<String,Network>> listNetworks(AtomicReference<AuthorizationException> authException, @Named(value="jclouds.session-interval") long seconds, NetworksForCurrentUser networksForCurrentUser)
@Provides @Singleton public com.google.common.base.Supplier<Map<String,Project>> listProjects(AtomicReference<AuthorizationException> authException, @Named(value="jclouds.session-interval") long seconds, ProjectsForCurrentUser projectsForCurrentUser)
@Provides @Singleton public com.google.common.base.Supplier<User> getCurrentUser(AtomicReference<AuthorizationException> authException, @Named(value="jclouds.session-interval") long seconds, GetCurrentUser getCurrentUser)
@Provides @Singleton protected com.google.common.base.Predicate<String> jobComplete(JobComplete jobComplete)
@Provides @Singleton protected com.google.common.cache.LoadingCache<String,SshKeyPair> keyPairMap(com.google.common.cache.CacheLoader<String,SshKeyPair> in)
@Provides @Singleton protected com.google.common.cache.LoadingCache<ZoneAndName,SecurityGroup> securityGroupMap(com.google.common.cache.CacheLoader<ZoneAndName,SecurityGroup> in)
@Provides @Singleton protected com.google.common.cache.LoadingCache<String,Set<IPForwardingRule>> getIPForwardingRulesByVirtualMachine(com.google.common.cache.CacheLoader<String,Set<IPForwardingRule>> in)
@Provides @Singleton protected com.google.common.cache.LoadingCache<String,Set<FirewallRule>> getFirewallRulesByVirtualMachine(com.google.common.cache.CacheLoader<String,Set<FirewallRule>> getFirewallRules)
@Provides @Singleton public Map<NetworkType,? extends OptionsConverter> optionsConverters()
protected com.google.common.base.Optional<ImageExtension> provideImageExtension(com.google.inject.Injector i)
provideImageExtension
in class BaseComputeServiceContextModule
protected com.google.common.base.Optional<SecurityGroupExtension> provideSecurityGroupExtension(com.google.inject.Injector i)
provideSecurityGroupExtension
in class BaseComputeServiceContextModule
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.