Package com.amazonaws.services.autoscaling.model

Examples of com.amazonaws.services.autoscaling.model.LaunchConfiguration


    }

    private void verifyLaunchConfigList(List<Resource> resources, List<LaunchConfiguration> lcList) {
        Assert.assertEquals(resources.size(), lcList.size());
        for (int i = 0; i < resources.size(); i++) {
            LaunchConfiguration lc = lcList.get(i);
            if (i % 2 == 0) {
                verifyLaunchConfig(resources.get(i), lc.getLaunchConfigurationName(), true);
            } else {
                verifyLaunchConfig(resources.get(i), lc.getLaunchConfigurationName(), null);
            }
        }
    }
View Full Code Here


        }
        return lcList;
    }

    private LaunchConfiguration mkLaunchConfig(String lcName) {
        return new LaunchConfiguration().withLaunchConfigurationName(lcName);
    }
View Full Code Here

            }
            asgResource.setAdditionalField(ASG_FIELD_INSTANCES, StringUtils.join(instances, ","));
            asgResource.setAdditionalField(ASG_FIELD_ELBS,
                    StringUtils.join(asg.getLoadBalancerNames(), ","));
            String lcName = asg.getLaunchConfigurationName();
            LaunchConfiguration lc = nameToLaunchConfig.get(lcName);
            if (lc != null) {
                asgResource.setAdditionalField(ASG_FIELD_LC_NAME, lcName);
            }
            if (lc != null && lc.getCreatedTime() != null) {
                asgResource.setAdditionalField(ASG_FIELD_LC_CREATION_TIME,
                        String.valueOf(lc.getCreatedTime().getTime()));
            }
            // sets the field for the time when the ASG's traffic is suspended from ELB
            for (SuspendedProcess sp : asg.getSuspendedProcesses()) {
                if ("AddToLoadBalancer".equals(sp.getProcessName())) {
                    String suspensionTime = getSuspensionTimeString(sp.getSuspensionReason());
View Full Code Here

TOP

Related Classes of com.amazonaws.services.autoscaling.model.LaunchConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.