Package com.amazonaws.services.elasticloadbalancing.model

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


    public LoadBalancerAttributes describeElasticLoadBalancerAttributes(String name) {
        LOGGER.info(String.format("Getting attributes for ELB with name '%s' in region %s.", name, region));
        AmazonElasticLoadBalancingClient elbClient = elbClient();
        DescribeLoadBalancerAttributesRequest request = new DescribeLoadBalancerAttributesRequest().withLoadBalancerName(name);
        DescribeLoadBalancerAttributesResult result = elbClient.describeLoadBalancerAttributes(request);
        LoadBalancerAttributes attrs = result.getLoadBalancerAttributes();
        LOGGER.info(String.format("Got attributes for ELB with name '%s' in region %s.", name, region));
        return attrs;
    }
View Full Code Here


     * @param region the region
     * @param lbName the ELB name
     * @return {@code true} if cross-zone load balancing is enabled
     */
    protected boolean isCrossZoneLoadBalancingEnabled(String region, String lbName) {
        LoadBalancerAttributes attrs = getAwsClient(region).describeElasticLoadBalancerAttributes(lbName);
        return attrs.getCrossZoneLoadBalancing().isEnabled();
    }
View Full Code Here

TOP

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

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.