public abstract class GenericConfig<T extends com.amazonaws.AmazonWebServiceClient> extends Object
Modifier and Type | Field and Description |
---|---|
protected com.amazonaws.client.builder.AwsClientBuilder<? extends com.amazonaws.client.builder.AwsClientBuilder,T> |
clientBuilder |
protected com.amazonaws.ClientConfiguration |
clientConfig |
protected com.amazonaws.auth.AWSCredentials |
clientCredentials |
protected com.amazonaws.regions.Regions |
regions
Region for the amazon instance.
|
Constructor and Description |
---|
GenericConfig() |
Modifier and Type | Method and Description |
---|---|
String |
connectionId() |
protected void |
createClient()
Creates Amazon AWS client with the builder set by the concrete class
|
protected abstract com.amazonaws.client.builder.AwsClientBuilder |
createClientBuilder()
Set the client builder to be called when creating a new client
|
protected void |
createClientConfiguration()
Creates the configuration for the AWSClient
|
void |
disconnect() |
T |
getClient() |
Integer |
getConnectionTimeout() |
Integer |
getMaxConnections() |
com.amazonaws.Protocol |
getProtocol() |
String |
getProxyDomain() |
String |
getProxyHost() |
String |
getProxyPassword() |
Integer |
getProxyPort() |
String |
getProxyUsername() |
String |
getProxyWorkstation() |
com.amazonaws.regions.Regions |
getRegions() |
Integer |
getSocketTimeout() |
boolean |
isConnected() |
void |
setClient(T client) |
protected void |
setClientBuilder(com.amazonaws.client.builder.AwsClientBuilder clientBuilder) |
void |
setConnectionTimeout(Integer connectionTimeout) |
protected abstract void |
setCustomClientConfiguration()
Sets the custom configuration fields for every different AWSClient
|
void |
setMaxConnections(Integer maxConnections) |
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) |
protected void |
setRegion(com.amazonaws.regions.Regions regions) |
void |
setSocketTimeout(Integer socketTimeout) |
protected com.amazonaws.regions.Regions regions
protected com.amazonaws.ClientConfiguration clientConfig
protected com.amazonaws.client.builder.AwsClientBuilder<? extends com.amazonaws.client.builder.AwsClientBuilder,T extends com.amazonaws.AmazonWebServiceClient> clientBuilder
protected com.amazonaws.auth.AWSCredentials clientCredentials
protected void setRegion(com.amazonaws.regions.Regions regions)
public com.amazonaws.regions.Regions getRegions()
@Disconnect public void disconnect()
@ValidateConnection public boolean isConnected()
@ConnectionIdentifier public String connectionId()
protected void createClientConfiguration()
protected abstract void setCustomClientConfiguration()
protected abstract com.amazonaws.client.builder.AwsClientBuilder createClientBuilder()
protected void setClientBuilder(com.amazonaws.client.builder.AwsClientBuilder clientBuilder)
protected void createClient() throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
public String getProxyUsername()
public void setProxyUsername(String proxyUsername)
public Integer getProxyPort()
public void setProxyPort(Integer proxyPort)
public String getProxyPassword()
public void setProxyPassword(String proxyPassword)
public String getProxyHost()
public void setProxyHost(String proxyHost)
public Integer getSocketTimeout()
public void setSocketTimeout(Integer socketTimeout)
public Integer getConnectionTimeout()
public void setConnectionTimeout(Integer connectionTimeout)
public T getClient()
public void setClient(T client)
public com.amazonaws.Protocol getProtocol()
public void setProtocol(com.amazonaws.Protocol protocol)
public String getProxyDomain()
public void setProxyDomain(String proxyDomain)
public String getProxyWorkstation()
public void setProxyWorkstation(String proxyWorkstation)
public Integer getMaxConnections()
public void setMaxConnections(Integer maxConnections)
Copyright © 2010–2019. All rights reserved.