Package com.elastisys.scale.cloudadapters.aws.ec2.scalinggroup.client

Examples of com.elastisys.scale.cloudadapters.aws.ec2.scalinggroup.client.AwsEc2Client


      // filter instances on scaling group tag
      Filter filter = new Filter().withName(
          Constants.SCALING_GROUP_TAG_FILTER_KEY).withValues(
          getScalingGroupName());
      List<Instance> instances = this.client.getInstances(asList(filter));
      return Lists.transform(instances, new InstanceToMachine());
    } catch (Exception e) {
      throw new ScalingGroupException(format(
          "failed to retrieve machines in scaling group \"%s\": %s",
          getScalingGroupName(), e.getMessage()), e);
    }
View Full Code Here


*
*/
public class Main {

  public static void main(String[] args) throws Exception {
    ScalingGroup scalingGroup = new Ec2ScalingGroup(new AwsEc2Client());
    CloudAdapterServer.main(new BaseCloudAdapter(scalingGroup), args);
  }
View Full Code Here

*
*/
public class Main {

  public static void main(String[] args) throws Exception {
    ScalingGroup scalingGroup = new Ec2ScalingGroup(new AwsEc2Client());
    CloudAdapterServer.main(new BaseCloudAdapter(scalingGroup), args);
  }
View Full Code Here

TOP

Related Classes of com.elastisys.scale.cloudadapters.aws.ec2.scalinggroup.client.AwsEc2Client

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.