Example usage for com.amazonaws.services.elasticloadbalancing AmazonElasticLoadBalancingClient setEndpoint

List of usage examples for com.amazonaws.services.elasticloadbalancing AmazonElasticLoadBalancingClient setEndpoint

Introduction

In this page you can find the example usage for com.amazonaws.services.elasticloadbalancing AmazonElasticLoadBalancingClient setEndpoint.

Prototype

@Deprecated
public void setEndpoint(String endpoint, String serviceName, String regionId) 

Source Link

Document

Allows specifying the endpoint along with signing information (service name and signing region).

Usage

From source file:web.component.impl.aws.AWSELBImpl.java

private void setUpHttpClient(AmazonElasticLoadBalancingClient awsELBClient) {

    Properties conf = ((AWSImpl) AWS.access()).conf();
    String endpoint = conf.getProperty("elb.endpoint");
    String serviceName = conf.getProperty("elb.servicename");
    String regionName = conf.getProperty("region");

    awsELBClient.setEndpoint(endpoint, serviceName, regionName);
    awsELBClient.setServiceNameIntern(serviceName);
}