Class AWSEC2CreateSecurityGroupIfNeeded


  • @Singleton
    public class AWSEC2CreateSecurityGroupIfNeeded
    extends com.google.common.cache.CacheLoader<RegionAndName,​String>
    • Field Detail

      • logger

        @Named("jclouds.compute")
        protected Logger logger
      • securityGroupEventualConsistencyDelay

        protected final com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay
      • groupNameToId

        protected final com.google.common.base.Function<String,​String> groupNameToId
    • Constructor Detail

      • AWSEC2CreateSecurityGroupIfNeeded

        @Inject
        public AWSEC2CreateSecurityGroupIfNeeded​(AWSEC2Api ec2Api,
                                                 @Named("SECGROUP_NAME_TO_ID")
                                                 com.google.common.base.Function<String,​String> groupNameToId,
                                                 @Named("SECURITY")
                                                 com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
      • AWSEC2CreateSecurityGroupIfNeeded

        public AWSEC2CreateSecurityGroupIfNeeded​(AWSSecurityGroupApi securityApi,
                                                 @Named("SECGROUP_NAME_TO_ID")
                                                 com.google.common.base.Function<String,​String> groupNameToId,
                                                 @Named("SECURITY")
                                                 com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)