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

Examples of com.elastisys.scale.cloudadapters.aws.commons.tasks.AutoScalingGroupRequester


   * @throws RuntimeException
   */
  private AutoScalingGroup awaitGroupSize(AutoScalingGroup autoScalingGroup,
      int targetSize) throws RuntimeException {
    String groupName = autoScalingGroup.getAutoScalingGroupName();
    Requester<AutoScalingGroup> requester = new AutoScalingGroupRequester(
        getClient(), groupName);
    RetryHandler<AutoScalingGroup> retryHandler = new RetryUntilScalingGroupSizeReached(
        targetSize, this.maxRetries, this.retryDelay);
    Callable<AutoScalingGroup> retryableRequest = new RetryableRequest<AutoScalingGroup>(
        requester, retryHandler, "await group size");
View Full Code Here


   * Waits for the Auto Scaling group to reach the desired size.
   *
   * @throws RuntimeException
   */
  private void awaitGroupSize() throws RuntimeException {
    Requester<AutoScalingGroup> requester = new AutoScalingGroupRequester(
        getClient(), this.autoScalingGroup);
    RetryHandler<AutoScalingGroup> retryHandler = new RetryUntilScalingGroupSizeReached(
        this.desiredCapacity, 30, 15000);
    String taskName = String.format("await-group-size{%d}",
        this.desiredCapacity);
View Full Code Here

   * @param desiredSize
   *
   * @throws RuntimeException
   */
  private void awaitGroupSize(int desiredSize) throws RuntimeException {
    Requester<AutoScalingGroup> requester = new AutoScalingGroupRequester(
        getClient(), this.autoScalingGroup);
    RetryHandler<AutoScalingGroup> retryHandler = new RetryUntilScalingGroupSizeReached(
        desiredSize, 30, 15000);
    String taskName = String.format("await-group-size{%d}", desiredSize);
    Callable<AutoScalingGroup> retryableRequest = new RetryableRequest<AutoScalingGroup>(
View Full Code Here

TOP

Related Classes of com.elastisys.scale.cloudadapters.aws.commons.tasks.AutoScalingGroupRequester

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.