Class DigitalOcean2ComputeServiceContextModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.jclouds.compute.config.BaseComputeServiceContextModule
-
- org.jclouds.compute.config.ComputeServiceAdapterContextModule<Droplet,Size,ImageInRegion,Region>
-
- org.jclouds.digitalocean2.compute.config.DigitalOcean2ComputeServiceContextModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class DigitalOcean2ComputeServiceContextModule extends ComputeServiceAdapterContextModule<Droplet,Size,ImageInRegion,Region>
Configures the compute service classes for the DigitalOcean API.
-
-
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 DigitalOcean2ComputeServiceContextModule()
-
Method Summary
-
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, provideTemplateOptions, 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
-
provideDropletRunningPredicate
@Provides protected com.google.common.base.Predicate<Integer> provideDropletRunningPredicate(DigitalOcean2Api api, ComputeServiceConstants.Timeouts timeouts, ComputeServiceConstants.PollPeriod pollPeriod)
-
provideDropletSuspendedPredicate
@Provides protected com.google.common.base.Predicate<Integer> provideDropletSuspendedPredicate(DigitalOcean2Api api, ComputeServiceConstants.Timeouts timeouts, ComputeServiceConstants.PollPeriod pollPeriod)
-
provideDropletTerminatedPredicate
@Provides protected com.google.common.base.Predicate<Integer> provideDropletTerminatedPredicate(DigitalOcean2Api api, ComputeServiceConstants.Timeouts timeouts, ComputeServiceConstants.PollPeriod pollPeriod)
-
provideImageAvailablePredicate
@Provides protected com.google.common.base.Predicate<Integer> provideImageAvailablePredicate(DigitalOcean2Api api, ComputeServiceConstants.Timeouts timeouts, ComputeServiceConstants.PollPeriod pollPeriod)
-
provideRegionAvailablePredicate
@Provides @Singleton protected com.google.common.base.Predicate<Region> provideRegionAvailablePredicate(DigitalOcean2Api api, ComputeServiceConstants.Timeouts timeouts, ComputeServiceConstants.PollPeriod pollPeriod)
-
provideActionCompletedPredicate
@Provides protected com.google.common.base.Predicate<Integer> provideActionCompletedPredicate(DigitalOcean2Api api, ComputeServiceConstants.Timeouts timeouts, ComputeServiceConstants.PollPeriod pollPeriod)
-
-