Package com.elastisys.scale.cloudadapters.aws.commons.functions

Examples of com.elastisys.scale.cloudadapters.aws.commons.functions.InstanceToMachine


      // retrieve all scaling group members
      List<Instance> groupInstances = this.client
          .getAutoScalingGroupMembers(getScalingGroupName());
      List<Machine> acquiredInstances = Lists.newArrayList(transform(
          groupInstances, new InstanceToMachine()));

      List<Machine> group = Lists.newArrayList();
      group.addAll(acquiredInstances);
      group.addAll(requestedInstances);
      LOG.debug("scaling group members: {}", group);
View Full Code Here


      // new member instance(s): {N} - {G}
      List<Instance> startedInstances = difference(expandedGroup,
          initialGroup);
      LOG.debug("started instances: {}", startedInstances);
      startedMachines = transform(startedInstances,
          new InstanceToMachine());

      // await new instance(s) being assigned an IP address
      List<Instance> membersWithIp = Lists.newArrayList();
      for (Instance createdInstance : startedInstances) {
        membersWithIp.add(awaitIpAddress(createdInstance));
      }
      startedMachines = transform(membersWithIp, new InstanceToMachine());
    } catch (Exception e) {
      throw new StartMachinesException(count, startedMachines, e);
    }

    return startedMachines;
View Full Code Here

TOP

Related Classes of com.elastisys.scale.cloudadapters.aws.commons.functions.InstanceToMachine

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.