Package com.amazonaws.services.elasticloadbalancing.model

Examples of com.amazonaws.services.elasticloadbalancing.model.DescribeLoadBalancersRequest


    this.loadBalancerNames = Arrays.asList(loadBalancerNames);
  }

  @Override
  public List<LoadBalancerDescription> call() {
    DescribeLoadBalancersRequest request = null;
    if (this.loadBalancerNames.isEmpty()) {
      request = new DescribeLoadBalancersRequest();
    } else {
      request = new DescribeLoadBalancersRequest(this.loadBalancerNames);
    }
    DescribeLoadBalancersResult result = getClient().getApi()
        .describeLoadBalancers(request);
    List<LoadBalancerDescription> loadBalancerDescriptions = result
        .getLoadBalancerDescriptions();
View Full Code Here


        } else {
            LOGGER.info(String.format("Getting ELBs for %d names in region %s.", names.length, region));
        }

        AmazonElasticLoadBalancingClient elbClient = elbClient();
        DescribeLoadBalancersRequest request = new DescribeLoadBalancersRequest().withLoadBalancerNames(names);
        DescribeLoadBalancersResult result = elbClient.describeLoadBalancers(request);
        List<LoadBalancerDescription> elbs = result.getLoadBalancerDescriptions();
        LOGGER.info(String.format("Got %d ELBs in region %s.", elbs.size(), region));
        return elbs;
    }
View Full Code Here

     * Step #5: Get ELB Hosted Zone Id
     */
    {
      String loadBalancerName = getService().describeEnvironmentResources(new DescribeEnvironmentResourcesRequest().withEnvironmentId(curEnv.getEnvironmentId())).getEnvironmentResources().getLoadBalancers().get(0).getName();

      DescribeLoadBalancersRequest req = new DescribeLoadBalancersRequest(
          Arrays.asList(loadBalancerName));

      List<LoadBalancerDescription> loadBalancers = ctx.elb.describeLoadBalancers(req)
          .getLoadBalancerDescriptions();

View Full Code Here

TOP

Related Classes of com.amazonaws.services.elasticloadbalancing.model.DescribeLoadBalancersRequest

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.