Class CreateSecurityGroupIfNeeded

    • Field Detail

      • logger

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

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

      • CreateSecurityGroupIfNeeded

        @Inject
        public CreateSecurityGroupIfNeeded​(EC2Api ec2Api,
                                           @Named("SECURITY")
                                           com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
      • CreateSecurityGroupIfNeeded

        public CreateSecurityGroupIfNeeded​(SecurityGroupApi securityClient,
                                           @Named("SECURITY")
                                           com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
    • Method Detail

      • createIngressRuleForTCPPort

        protected void createIngressRuleForTCPPort​(String region,
                                                   String name,
                                                   int port)
      • authorizeGroupToItself

        protected void authorizeGroupToItself​(String region,
                                              String name)