Class EC2ComputeServiceDependenciesModule

  • All Implemented Interfaces:
    com.google.inject.Module
    Direct Known Subclasses:
    AWSEC2ComputeServiceDependenciesModule

    public class EC2ComputeServiceDependenciesModule
    extends com.google.inject.AbstractModule
    • Constructor Detail

      • EC2ComputeServiceDependenciesModule

        public EC2ComputeServiceDependenciesModule()
    • Method Detail

      • configure

        protected void configure()
        Overrides:
        configure in class com.google.inject.AbstractModule
      • bindNodeConverter

        @Provides
        @Singleton
        public final com.google.common.base.Function<RunningInstance,​NodeMetadata> bindNodeConverter​(RunningInstanceToNodeMetadata baseConverter,
                                                                                                           AddElasticIpsToNodemetadata addElasticIpsToNodemetadata,
                                                                                                           @Named("jclouds.ec2.auto-allocate-elastic-ips")
                                                                                                           boolean autoAllocateElasticIps)
        only add the overhead of looking up ips when we have enabled the auto-allocate functionality
      • securityGroupMap

        @Provides
        @Singleton
        @Named("SECURITY")
        protected final com.google.common.cache.LoadingCache<RegionAndName,​String> securityGroupMap​(@Named("SECURITY")
                                                                                                          com.google.common.cache.CacheLoader<RegionAndName,​String> in)
      • instanceToElasticIp

        @Provides
        @Singleton
        @Named("ELASTICIP")
        protected final com.google.common.cache.LoadingCache<RegionAndName,​String> instanceToElasticIp​(@Named("ELASTICIP")
                                                                                                             com.google.common.cache.CacheLoader<RegionAndName,​String> in)
      • securityGroupEventualConsistencyDelay

        @Provides
        @Singleton
        @Named("SECURITY")
        protected final com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay​(SecurityGroupPresent in,
                                                                                                              @Named("jclouds.ec2.timeout.securitygroup-present")
                                                                                                              long msDelay)