public abstract class ClientBuilder<T extends com.amazonaws.AmazonWebServiceClient> extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
accessKey |
protected static int |
AWS_CLIENT_MAX_ERROR_RETRY |
protected com.amazonaws.client.builder.AwsAsyncClientBuilder |
awsAsyncClientBuilder |
protected com.amazonaws.client.builder.AwsSyncClientBuilder |
awsSyncClientBuilder |
protected com.amazonaws.ClientConfiguration |
clientConfig |
protected String |
connectionId |
protected String |
roleARN |
protected String |
secretKey |
protected String |
sessionToken |
protected boolean |
tryDefaultAWSCredentialsProviderChain |
Constructor and Description |
---|
ClientBuilder() |
Modifier and Type | Method and Description |
---|---|
T |
buildAsyncClient(CommonRegion regionEndpoint) |
T |
buildClient(CommonRegion regionEndpoint) |
abstract void |
connect() |
protected com.amazonaws.ClientConfiguration |
createClientConfiguration()
Creates the configuration for the AWSClient
|
protected void |
customSetupClientBuilder() |
abstract void |
disconnect() |
String |
getAccessKey() |
T |
getAsyncClient() |
protected abstract com.amazonaws.client.builder.AwsAsyncClientBuilder |
getAsyncClientBuilder() |
com.amazonaws.ClientConfiguration |
getClientConfiguration() |
CommonRegion |
getConfigRegion() |
String |
getConnectionId() |
Integer |
getConnectionTimeout() |
protected abstract CommonRegion |
getDefaultRegion() |
com.amazonaws.Protocol |
getProtocol() |
String |
getProxyDomain() |
String |
getProxyHost() |
String |
getProxyPassword() |
Integer |
getProxyPort() |
String |
getProxyUsername() |
String |
getProxyWorkstation() |
String |
getRoleARN() |
String |
getSecretKey() |
String |
getSessionToken() |
Integer |
getSocketTimeout() |
T |
getSyncClient() |
protected abstract com.amazonaws.client.builder.AwsSyncClientBuilder |
getSyncClientBuilder() |
void |
instantiateClient(CommonRegion region) |
void |
instantiateClient(String region) |
boolean |
isTryDefaultAWSCredentialsProviderChain() |
void |
setAccessKey(String accessKey) |
void |
setAsyncClient(T asyncClient) |
void |
setClientConfiguration(com.amazonaws.ClientConfiguration clientConfiguration) |
void |
setConfigRegion(CommonRegion configRegion) |
void |
setConnectionTimeout(Integer connectionTimeout) |
protected abstract void |
setCustomClientConfiguration()
Sets the custom configuration fields for every different AWSClient
|
void |
setDefaultRegion(CommonRegion defaultRegion) |
void |
setProtocol(com.amazonaws.Protocol protocol) |
void |
setProxyDomain(String proxyDomain) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPassword(String proxyPassword) |
void |
setProxyPort(Integer proxyPort) |
void |
setProxyUsername(String proxyUsername) |
void |
setProxyWorkstation(String proxyWorkstation) |
void |
setRoleARN(String roleARN) |
void |
setSecretKey(String secretKey) |
void |
setSessionToken(String sessionToken) |
void |
setSocketTimeout(Integer socketTimeout) |
void |
setSyncClient(T syncClient) |
void |
setTryDefaultAWSCredentialsProviderChain(boolean tryDefaultAWSCredentialsProviderChain) |
void |
setupClientBuilder() |
abstract void |
testConnect() |
protected static final int AWS_CLIENT_MAX_ERROR_RETRY
protected com.amazonaws.client.builder.AwsSyncClientBuilder awsSyncClientBuilder
protected com.amazonaws.client.builder.AwsAsyncClientBuilder awsAsyncClientBuilder
protected String accessKey
protected String secretKey
protected String roleARN
protected String sessionToken
protected boolean tryDefaultAWSCredentialsProviderChain
protected String connectionId
protected com.amazonaws.ClientConfiguration clientConfig
public String getConnectionId()
public void setSyncClient(T syncClient)
public void setAsyncClient(T asyncClient)
public T getSyncClient()
public T getAsyncClient()
public void setupClientBuilder()
protected void customSetupClientBuilder()
public void instantiateClient(CommonRegion region)
public T buildClient(CommonRegion regionEndpoint)
public T buildAsyncClient(CommonRegion regionEndpoint)
public void instantiateClient(String region)
public String getAccessKey()
public void setAccessKey(String accessKey)
public String getSecretKey()
public void setSecretKey(String secretKey)
public String getRoleARN()
public void setRoleARN(String roleARN)
public String getSessionToken()
public void setSessionToken(String sessionToken)
public boolean isTryDefaultAWSCredentialsProviderChain()
public void setTryDefaultAWSCredentialsProviderChain(boolean tryDefaultAWSCredentialsProviderChain)
public com.amazonaws.ClientConfiguration getClientConfiguration()
public void setClientConfiguration(com.amazonaws.ClientConfiguration clientConfiguration)
protected abstract CommonRegion getDefaultRegion()
public void setDefaultRegion(CommonRegion defaultRegion)
public CommonRegion getConfigRegion()
public void setConfigRegion(CommonRegion configRegion)
protected abstract com.amazonaws.client.builder.AwsSyncClientBuilder getSyncClientBuilder()
protected abstract com.amazonaws.client.builder.AwsAsyncClientBuilder getAsyncClientBuilder()
public abstract void connect() throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
public abstract void testConnect() throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
public abstract void disconnect()
protected com.amazonaws.ClientConfiguration createClientConfiguration()
protected abstract void setCustomClientConfiguration()
public com.amazonaws.Protocol getProtocol()
public void setProtocol(com.amazonaws.Protocol protocol)
public String getProxyHost()
public void setProxyHost(String proxyHost)
public Integer getProxyPort()
public void setProxyPort(Integer proxyPort)
public String getProxyUsername()
public void setProxyUsername(String proxyUsername)
public String getProxyPassword()
public void setProxyPassword(String proxyPassword)
public String getProxyDomain()
public void setProxyDomain(String proxyDomain)
public String getProxyWorkstation()
public void setProxyWorkstation(String proxyWorkstation)
public Integer getSocketTimeout()
public void setSocketTimeout(Integer socketTimeout)
public Integer getConnectionTimeout()
public void setConnectionTimeout(Integer connectionTimeout)
Copyright © 2010–2019. All rights reserved.