Package com.amazonaws.services.autoscaling.model

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


    private DescribeAutoScalingGroupsResult mkAsgResult(String asgName, String instanceId) {
        DescribeAutoScalingGroupsResult result = new DescribeAutoScalingGroupsResult();
        AutoScalingGroup asg = new AutoScalingGroup();
        asg.setAutoScalingGroupName(asgName);
        Instance inst = new Instance();
        inst.setInstanceId(instanceId);
        asg.setInstances(Arrays.asList(inst));
        result.setAutoScalingGroups(Arrays.asList(asg));
        return result;
    }
View Full Code Here


    private final ASGChaosCrawler crawler;

    private AutoScalingGroup mkAsg(String asgName, String instanceId) {
        AutoScalingGroup asg = new AutoScalingGroup();
        asg.setAutoScalingGroupName(asgName);
        Instance inst = new Instance();
        inst.setInstanceId(instanceId);
        asg.setInstances(Arrays.asList(inst));
        return asg;
    }
View Full Code Here

            asg.setAutoScalingGroupName(groupName);
            map.put(groupName, asg);
        }

        final AutoScalingGroup asg = map.get(groupName);
        Instance instance = new Instance();
        instance.setInstanceId(instanceId);

        asg.getInstances().add(instance);
    }
View Full Code Here

TOP

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

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.