public class ConnectionFactoryImpl extends ConnectionFactory
| Modifier and Type | Field and Description |
|---|---|
static int |
BASE_SERVER_PROTOCOL_VERSION |
static int |
BINARY_PROTOCOL_VERSION |
static int |
DEFAULT_SERVER_PROTOCOL_VERSION |
static int |
EXTENDED_RESULT_METADATA_SERVER_PROTOCOL_VERSION |
static int |
EXTENDED2_RESULT_METADATA_SERVER_PROTOCOL_VERSION |
| Constructor and Description |
|---|
ConnectionFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
RedshiftStream |
constructNewStream(SocketFactory socketFactory,
HostSpec hostSpec,
int connectTimeout,
RedshiftLogger logger,
Boolean disableCompressionForSSL,
Properties info) |
QueryExecutor |
openConnectionImpl(HostSpec[] hostSpecs,
String user,
String database,
Properties info,
RedshiftLogger logger)
Implementation of
ConnectionFactory.openConnection(com.amazon.redshift.util.HostSpec[], java.lang.String, java.lang.String, java.util.Properties, com.amazon.redshift.logger.RedshiftLogger) for a particular protocol version. |
closeStream, openConnectionpublic static int BASE_SERVER_PROTOCOL_VERSION
public static int EXTENDED_RESULT_METADATA_SERVER_PROTOCOL_VERSION
public static int BINARY_PROTOCOL_VERSION
public static int EXTENDED2_RESULT_METADATA_SERVER_PROTOCOL_VERSION
public static int DEFAULT_SERVER_PROTOCOL_VERSION
public RedshiftStream constructNewStream(SocketFactory socketFactory, HostSpec hostSpec, int connectTimeout, RedshiftLogger logger, Boolean disableCompressionForSSL, Properties info) throws SQLException, IOException
SQLExceptionIOExceptionpublic QueryExecutor openConnectionImpl(HostSpec[] hostSpecs, String user, String database, Properties info, RedshiftLogger logger) throws SQLException
ConnectionFactoryConnectionFactory.openConnection(com.amazon.redshift.util.HostSpec[], java.lang.String, java.lang.String, java.util.Properties, com.amazon.redshift.logger.RedshiftLogger) for a particular protocol version. Implemented by
subclasses of ConnectionFactory.openConnectionImpl in class ConnectionFactoryhostSpecs - at least one host and port to connect to; multiple elements for round-robin
failoveruser - the username to authenticate with; may not be null.database - the database on the server to connect to; may not be null.info - extra properties controlling the connection; notably, "password" if present
supplies the password to authenticate with.logger - the logger to log the entry for debugging.null if this protocol version is not
supported by the server.SQLException - if the connection could not be established for a reason other than
protocol version incompatibility.Copyright © 2024 Amazon.com Inc.. All rights reserved.