org.jclouds.cloudstack.compute.config
Class CloudStackComputeServiceContextModule
java.lang.Object
com.google.inject.AbstractModule
org.jclouds.compute.config.BaseComputeServiceContextModule
org.jclouds.compute.config.ComputeServiceAdapterContextModule<CloudStackClient,CloudStackAsyncClient,VirtualMachine,ServiceOffering,Template,Zone>
org.jclouds.cloudstack.compute.config.CloudStackComputeServiceContextModule
- All Implemented Interfaces:
- com.google.inject.Module
- Direct Known Subclasses:
- NinefoldComputeServiceContextModule
public class CloudStackComputeServiceContextModule
- extends ComputeServiceAdapterContextModule<CloudStackClient,CloudStackAsyncClient,VirtualMachine,ServiceOffering,Template,Zone>
- Author:
- Adrian Cole
Method Summary |
protected void |
configure()
|
com.google.common.base.Supplier<User> |
getCurrentUser(AtomicReference<AuthorizationException> authException,
long seconds,
GetCurrentUser getCurrentUser)
|
protected com.google.common.cache.LoadingCache<Long,Set<IPForwardingRule>> |
getIPForwardingRulesByVirtualMachine(com.google.common.cache.CacheLoader<Long,Set<IPForwardingRule>> getIPForwardingRules)
|
protected com.google.common.base.Predicate<Long> |
jobComplete(JobComplete jobComplete)
|
com.google.common.base.Supplier<Map<Long,Network>> |
listNetworks(AtomicReference<AuthorizationException> authException,
long seconds,
NetworksForCurrentUser networksForCurrentUser)
|
com.google.common.base.Supplier<Map<Long,String>> |
listOSCategories(AtomicReference<AuthorizationException> authException,
long seconds,
CloudStackClient client)
|
com.google.common.base.Supplier<Map<Long,OSType>> |
listOSTypes(AtomicReference<AuthorizationException> authException,
long seconds,
CloudStackClient client)
|
Methods inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule |
indexer, provideImageMap, provideNamingConvention, provideOsVersionMap, provideSizeMap, provideTemplate, provideTemplateOptionallyFromProperties, provideTemplateOptions, shouldParseImagesOnDemand, 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 |
CloudStackComputeServiceContextModule
public CloudStackComputeServiceContextModule()
configure
protected void configure()
- Overrides:
configure
in class ComputeServiceAdapterContextModule<CloudStackClient,CloudStackAsyncClient,VirtualMachine,ServiceOffering,Template,Zone>
listOSCategories
@Provides
@Singleton
public com.google.common.base.Supplier<Map<Long,String>> listOSCategories(AtomicReference<AuthorizationException> authException,
@Named(value="jclouds.session-interval")
long seconds,
CloudStackClient client)
listOSTypes
@Provides
@Singleton
public com.google.common.base.Supplier<Map<Long,OSType>> listOSTypes(AtomicReference<AuthorizationException> authException,
@Named(value="jclouds.session-interval")
long seconds,
CloudStackClient client)
listNetworks
@Provides
@Singleton
public com.google.common.base.Supplier<Map<Long,Network>> listNetworks(AtomicReference<AuthorizationException> authException,
@Named(value="jclouds.session-interval")
long seconds,
NetworksForCurrentUser networksForCurrentUser)
getCurrentUser
@Provides
@Singleton
public com.google.common.base.Supplier<User> getCurrentUser(AtomicReference<AuthorizationException> authException,
@Named(value="jclouds.session-interval")
long seconds,
GetCurrentUser getCurrentUser)
jobComplete
@Provides
@Singleton
protected com.google.common.base.Predicate<Long> jobComplete(JobComplete jobComplete)
getIPForwardingRulesByVirtualMachine
@Provides
@Singleton
protected com.google.common.cache.LoadingCache<Long,Set<IPForwardingRule>> getIPForwardingRulesByVirtualMachine(com.google.common.cache.CacheLoader<Long,Set<IPForwardingRule>> getIPForwardingRules)
Copyright © 2009-2012 jclouds. All Rights Reserved.