Delete deprecated AutoScalerPolicy methods - These took long, rather than Duration as an arg to configure the AutoScalerPolicy
Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/08516378 Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/08516378 Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/08516378 Branch: refs/heads/master Commit: 085163786360407ef162a8cdaaad89613152bad8 Parents: d754818 Author: Aled Sage <[email protected]> Authored: Wed Jul 29 17:22:38 2015 +0100 Committer: Aled Sage <[email protected]> Committed: Sat Aug 1 00:16:51 2015 +0100 ---------------------------------------------------------------------- .../policy/autoscaling/AutoScalerPolicy.java | 49 -------------------- 1 file changed, 49 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/08516378/policy/src/main/java/brooklyn/policy/autoscaling/AutoScalerPolicy.java ---------------------------------------------------------------------- diff --git a/policy/src/main/java/brooklyn/policy/autoscaling/AutoScalerPolicy.java b/policy/src/main/java/brooklyn/policy/autoscaling/AutoScalerPolicy.java index f453aa5..ddac9c4 100644 --- a/policy/src/main/java/brooklyn/policy/autoscaling/AutoScalerPolicy.java +++ b/policy/src/main/java/brooklyn/policy/autoscaling/AutoScalerPolicy.java @@ -157,33 +157,12 @@ public class AutoScalerPolicy extends AbstractPolicy { this.resizeUpIterationMax = val; return this; } - /** - * @deprecated since 0.7; use {@link #minPeriodBetweenExecs(Duration)} - */ - @Deprecated - public Builder minPeriodBetweenExecs(long val) { - return minPeriodBetweenExecs(Duration.of(val, TimeUnit.MILLISECONDS)); - } public Builder minPeriodBetweenExecs(Duration val) { this.minPeriodBetweenExecs = val; return this; } - /** - * @deprecated since 0.7; use {@link #resizeUpStabilizationDelay(Duration)} - */ - @Deprecated - public Builder resizeUpStabilizationDelay(long val) { - return resizeUpStabilizationDelay(Duration.of(val, TimeUnit.MILLISECONDS)); - } public Builder resizeUpStabilizationDelay(Duration val) { this.resizeUpStabilizationDelay = val; return this; } - /** - * @deprecated since 0.7; use {@link #resizeDownStabilizationDelay(Duration)} - */ - @Deprecated - public Builder resizeDownStabilizationDelay(long val) { - return resizeDownStabilizationDelay(Duration.of(val, TimeUnit.MILLISECONDS)); - } public Builder resizeDownStabilizationDelay(Duration val) { this.resizeDownStabilizationDelay = val; return this; } @@ -205,13 +184,6 @@ public class AutoScalerPolicy extends AbstractPolicy { public Builder maxSizeReachedSensor(BasicNotificationSensor<? super MaxPoolSizeReachedEvent> val) { this.maxSizeReachedSensor = val; return this; } - /** - * @deprecated since 0.7; use {@link #maxReachedNotificationDelay(Duration)} - */ - @Deprecated - public Builder maxReachedNotificationDelay(long val) { - return maxReachedNotificationDelay(Duration.of(val, TimeUnit.MILLISECONDS)); - } public Builder maxReachedNotificationDelay(Duration val) { this.maxReachedNotificationDelay = val; return this; } @@ -529,37 +501,16 @@ public class AutoScalerPolicy extends AbstractPolicy { setOrDefault(RESIZE_DOWN_ITERATION_MAX, val); } - /** - * @deprecated since 0.7.0; use {@link #setMinPeriodBetweenExecs(Duration)} - */ - public void setMinPeriodBetweenExecs(long val) { - setMinPeriodBetweenExecs(Duration.millis(val)); - } - public void setMinPeriodBetweenExecs(Duration val) { if (LOG.isInfoEnabled()) LOG.info("{} changing minPeriodBetweenExecs from {} to {}", new Object[] {this, getMinPeriodBetweenExecs(), val}); config().set(MIN_PERIOD_BETWEEN_EXECS, val); } - /** - * @deprecated since 0.7.0; use {@link #setResizeDownStabilizationDelay(Duration)} - */ - public void setResizeUpStabilizationDelay(long val) { - setResizeUpStabilizationDelay(Duration.millis(val)); - } - public void setResizeUpStabilizationDelay(Duration val) { if (LOG.isInfoEnabled()) LOG.info("{} changing resizeUpStabilizationDelay from {} to {}", new Object[] {this, getResizeUpStabilizationDelay(), val}); config().set(RESIZE_UP_STABILIZATION_DELAY, val); } - /** - * @deprecated since 0.7.0; use {@link #setResizeDownStabilizationDelay(Duration)} - */ - public void setResizeDownStabilizationDelay(long val) { - setResizeDownStabilizationDelay(Duration.millis(val)); - } - public void setResizeDownStabilizationDelay(Duration val) { if (LOG.isInfoEnabled()) LOG.info("{} changing resizeDownStabilizationDelay from {} to {}", new Object[] {this, getResizeDownStabilizationDelay(), val}); config().set(RESIZE_DOWN_STABILIZATION_DELAY, val);
