Package org.jclouds.rackspace.autoscale.v1.features

Examples of org.jclouds.rackspace.autoscale.v1.features.PolicyApi.list()


      System.out.format("Cleanup autoscale %n");

      // Remove ALL policies and groups with that name
      for (GroupState g : groupApi.listGroupStates()) {
         PolicyApi pa = autoscaleApi.getPolicyApiForZoneAndGroup(ZONE, g.getId());
         for(ScalingPolicy p : pa.list()) {
            if(p.getName().equals(NAME)) {
               System.out.format("Found matching policy: %s with cooldown %s%n", p.getId(), p.getCooldown());
               String policyId = p.getId();

               if (!(p.getTarget().equals("0") && p.getTargetType().equals(ScalingPolicyTargetType.DESIRED_CAPACITY))) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.