Class CloudStackComputeServiceContextModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.jclouds.compute.config.BaseComputeServiceContextModule
-
- org.jclouds.compute.config.ComputeServiceAdapterContextModule<VirtualMachine,ServiceOffering,Template,Zone>
-
- org.jclouds.cloudstack.compute.config.CloudStackComputeServiceContextModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class CloudStackComputeServiceContextModule extends ComputeServiceAdapterContextModule<VirtualMachine,ServiceOffering,Template,Zone>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jclouds.compute.config.ComputeServiceAdapterContextModule
ComputeServiceAdapterContextModule.AddDefaultCredentialsToImage, ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N,H,I,L>
-
Nested classes/interfaces inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
BaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl
-
-
Constructor Summary
Constructors Constructor Description CloudStackComputeServiceContextModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 TemplateOptions
provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
protected com.google.common.cache.LoadingCache<ZoneAndName,SecurityGroup>
securityGroupMap(com.google.common.cache.CacheLoader<ZoneAndName,SecurityGroup> in)
-
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, guiceProvideImageExtension, guiceProvideSecurityGroupExtension, guiceProvideTemplateOptions, indexer, osFamilyToCredentials, provideImageExtension, provideImageMap, provideOsFamilyToCredentials, provideOsVersionMap, provideSecurityGroupExtension, provideSizeMap, provideTemplateOptionallyFromProperties, shouldEagerlyParseImages, supplyImageCache, supplyNonParsingImages, supplySizeCache
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Method Detail
-
configure
protected void configure()
- Overrides:
configure
in classBaseComputeServiceContextModule
-
provideTemplateOptions
protected TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
- Overrides:
provideTemplateOptions
in classBaseComputeServiceContextModule
-
listOSCategories
@Provides @Singleton public final com.google.common.base.Supplier<Map<String,String>> listOSCategories(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, CloudStackApi client)
-
listOSTypes
@Provides @Singleton public final com.google.common.base.Supplier<Map<String,OSType>> listOSTypes(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, CloudStackApi client)
-
listNetworks
@Provides @Singleton public final com.google.common.base.Supplier<Map<String,Network>> listNetworks(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, NetworksForCurrentUser networksForCurrentUser)
-
listProjects
@Provides @Singleton public final com.google.common.base.Supplier<Map<String,Project>> listProjects(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, ProjectsForCurrentUser projectsForCurrentUser)
-
getCurrentUser
@Provides @Singleton public final com.google.common.base.Supplier<User> getCurrentUser(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, GetCurrentUser getCurrentUser)
-
jobComplete
@Provides @Singleton protected final com.google.common.base.Predicate<String> jobComplete(JobComplete jobComplete)
-
keyPairMap
@Provides @Singleton protected final com.google.common.cache.LoadingCache<String,SshKeyPair> keyPairMap(com.google.common.cache.CacheLoader<String,SshKeyPair> in)
-
securityGroupMap
@Provides @Singleton protected final com.google.common.cache.LoadingCache<ZoneAndName,SecurityGroup> securityGroupMap(com.google.common.cache.CacheLoader<ZoneAndName,SecurityGroup> in)
-
getIPForwardingRulesByVirtualMachine
@Provides @Singleton protected final com.google.common.cache.LoadingCache<String,Set<IPForwardingRule>> getIPForwardingRulesByVirtualMachine(com.google.common.cache.CacheLoader<String,Set<IPForwardingRule>> in)
-
getFirewallRulesByVirtualMachine
@Provides @Singleton protected final com.google.common.cache.LoadingCache<String,Set<FirewallRule>> getFirewallRulesByVirtualMachine(com.google.common.cache.CacheLoader<String,Set<FirewallRule>> getFirewallRules)
-
optionsConverters
@Provides @Singleton public final Map<NetworkType,? extends OptionsConverter> optionsConverters()
-
-