BROOKLYN-212: more improvements 1136/head
authorAled Sage <aled.sage@gmail.com>
Thu, 14 Jan 2016 10:43:50 +0000 (10:43 +0000)
committerAled Sage <aled.sage@gmail.com>
Thu, 14 Jan 2016 10:46:09 +0000 (10:46 +0000)
commit4245bd628172ad25bfbf745a9ad259f11050b3ea
treee0b70af90202099bdfa078943f2a70058cb51f5d
parentffbad25dcb78a58f77746f40ca3f127cada1ccb0
BROOKLYN-212: more improvements

- Resizable.resize: throw InsufficientCapacityException if didn’t
  manage to reach target size, rather than only if didn’t manage to
  increase in size at all.
- DynamicCluster: delete nodes that throw NoMachinesAvailableException,
  rather than putting them in quarantine.
- Fix AutoScalerPolicy’s max-capacity high-water mark, when
  resizeUpStabilizationDelay is used.
brooklyn-server/core/src/main/java/org/apache/brooklyn/core/entity/trait/Resizable.java
brooklyn-server/core/src/main/java/org/apache/brooklyn/entity/group/DynamicCluster.java
brooklyn-server/core/src/main/java/org/apache/brooklyn/entity/group/DynamicClusterImpl.java
brooklyn-server/core/src/test/java/org/apache/brooklyn/core/test/entity/TestClusterImpl.java
brooklyn-server/core/src/test/java/org/apache/brooklyn/entity/group/DynamicClusterTest.java
brooklyn-server/policy/src/main/java/org/apache/brooklyn/policy/autoscaling/AutoScalerPolicy.java
brooklyn-server/policy/src/test/java/org/apache/brooklyn/policy/autoscaling/AutoScalerPolicyMetricTest.java
brooklyn-server/software/base/src/test/java/org/apache/brooklyn/entity/software/base/test/autoscaling/AutoScalerPolicyNoMoreMachinesTest.java