Package org.teiid.resource.adapter.s3
Class S3ManagedConnectionFactory
- java.lang.Object
-
- org.teiid.resource.spi.BasicManagedConnectionFactory
-
- org.teiid.resource.adapter.s3.S3ManagedConnectionFactory
-
- All Implemented Interfaces:
Serializable
,javax.resource.spi.ManagedConnectionFactory
,javax.resource.spi.ResourceAdapterAssociation
,javax.resource.spi.ValidatingManagedConnectionFactory
,S3Configuration
public class S3ManagedConnectionFactory extends BasicManagedConnectionFactory implements S3Configuration
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BundleUtil
UTIL
-
Constructor Summary
Constructors Constructor Description S3ManagedConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicConnectionFactory<ResourceConnection>
createConnectionFactory()
boolean
equals(Object obj)
String
getAccessKey()
String
getBucket()
String
getEndpoint()
String
getRegion()
The optional region.String
getSecretKey()
String
getSseAlgorithm()
String
getSseKey()
base64 encoded key.int
hashCode()
void
setAccessKey(String accessKey)
void
setBucket(String bucket)
void
setEndpoint(String endpoint)
void
setRegion(String region)
void
setSecretKey(String secretKey)
void
setSseAlgorithm(String sseAlgorithm)
void
setSseKey(String sseKey)
-
Methods inherited from class org.teiid.resource.spi.BasicManagedConnectionFactory
checkEquals, createConnectionFactory, createManagedConnection, getInstance, getInvalidConnections, getLogWriter, getResourceAdapter, matchManagedConnections, setLogWriter, setResourceAdapter
-
-
-
-
Field Detail
-
UTIL
public static final BundleUtil UTIL
-
-
Method Detail
-
createConnectionFactory
public BasicConnectionFactory<ResourceConnection> createConnectionFactory() throws javax.resource.ResourceException
- Specified by:
createConnectionFactory
in interfacejavax.resource.spi.ManagedConnectionFactory
- Specified by:
createConnectionFactory
in classBasicManagedConnectionFactory
- Throws:
javax.resource.ResourceException
-
getAccessKey
public String getAccessKey()
- Specified by:
getAccessKey
in interfaceS3Configuration
-
setAccessKey
public void setAccessKey(String accessKey)
-
getSecretKey
public String getSecretKey()
- Specified by:
getSecretKey
in interfaceS3Configuration
-
setSecretKey
public void setSecretKey(String secretKey)
-
getBucket
public String getBucket()
- Specified by:
getBucket
in interfaceS3Configuration
-
setBucket
public void setBucket(String bucket)
-
getRegion
public String getRegion()
Description copied from interface:S3Configuration
The optional region. May also be specified in the endpoint url for some s3 services.- Specified by:
getRegion
in interfaceS3Configuration
- Returns:
-
setRegion
public void setRegion(String region)
-
getSseAlgorithm
public String getSseAlgorithm()
- Specified by:
getSseAlgorithm
in interfaceS3Configuration
-
setSseAlgorithm
public void setSseAlgorithm(String sseAlgorithm)
-
getSseKey
public String getSseKey()
Description copied from interface:S3Configuration
base64 encoded key. If specified server side encryption will be used with the specifiedS3Configuration.getSseAlgorithm()
- Specified by:
getSseKey
in interfaceS3Configuration
- Returns:
-
setSseKey
public void setSseKey(String sseKey)
-
getEndpoint
public String getEndpoint()
- Specified by:
getEndpoint
in interfaceS3Configuration
-
setEndpoint
public void setEndpoint(String endpoint)
-
hashCode
public int hashCode()
-
-