Package | Description |
---|---|
org.postgresql | |
org.postgresql.core | |
org.postgresql.core.v3 | |
org.postgresql.hostchooser | |
org.postgresql.jdbc |
Modifier and Type | Method and Description |
---|---|
private static HostSpec[] |
Driver.hostSpecs(java.util.Properties props) |
Modifier and Type | Field and Description |
---|---|
private HostSpec |
PGStream.hostSpec |
Modifier and Type | Method and Description |
---|---|
HostSpec |
PGStream.getHostSpec() |
HostSpec |
QueryExecutorBase.getHostSpec() |
HostSpec |
QueryExecutor.getHostSpec() |
Modifier and Type | Method and Description |
---|---|
static QueryExecutor |
ConnectionFactory.openConnection(HostSpec[] hostSpecs,
java.lang.String user,
java.lang.String database,
java.util.Properties info)
Establishes and initializes a new connection.
|
abstract QueryExecutor |
ConnectionFactory.openConnectionImpl(HostSpec[] hostSpecs,
java.lang.String user,
java.lang.String database,
java.util.Properties info)
Implementation of
ConnectionFactory.openConnection(org.postgresql.util.HostSpec[], java.lang.String, java.lang.String, java.util.Properties) for a particular protocol version. |
Constructor and Description |
---|
PGStream(javax.net.SocketFactory socketFactory,
HostSpec hostSpec)
Deprecated.
|
PGStream(javax.net.SocketFactory socketFactory,
HostSpec hostSpec,
int timeout)
Constructor: Connect to the PostgreSQL back end and return a stream connection.
|
Modifier and Type | Method and Description |
---|---|
QueryExecutor |
ConnectionFactoryImpl.openConnectionImpl(HostSpec[] hostSpecs,
java.lang.String user,
java.lang.String database,
java.util.Properties info) |
private PGStream |
ConnectionFactoryImpl.tryConnect(java.lang.String user,
java.lang.String database,
java.util.Properties info,
javax.net.SocketFactory socketFactory,
HostSpec hostSpec,
SslMode sslMode) |
Modifier and Type | Field and Description |
---|---|
(package private) HostSpec |
GlobalHostStatusTracker.HostSpecStatus.host |
HostSpec |
CandidateHost.hostSpec |
private HostSpec[] |
MultiHostChooser.hostSpecs |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<HostSpec,GlobalHostStatusTracker.HostSpecStatus> |
GlobalHostStatusTracker.hostStatusMap |
Modifier and Type | Method and Description |
---|---|
(package private) static java.util.List<HostSpec> |
GlobalHostStatusTracker.getCandidateHosts(HostSpec[] hostSpecs,
HostRequirement targetServerType,
long hostRecheckMillis)
Returns a list of candidate hosts that have the required targetServerType.
|
Modifier and Type | Method and Description |
---|---|
static HostChooser |
HostChooserFactory.createHostChooser(HostSpec[] hostSpecs,
HostRequirement targetServerType,
java.util.Properties info) |
(package private) static java.util.List<HostSpec> |
GlobalHostStatusTracker.getCandidateHosts(HostSpec[] hostSpecs,
HostRequirement targetServerType,
long hostRecheckMillis)
Returns a list of candidate hosts that have the required targetServerType.
|
static void |
GlobalHostStatusTracker.reportHostStatus(HostSpec hostSpec,
HostStatus hostStatus)
Store the actual observed host status.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<CandidateHost> |
MultiHostChooser.withReqStatus(HostRequirement requirement,
java.util.List<HostSpec> hosts) |
Constructor and Description |
---|
CandidateHost(HostSpec hostSpec,
HostRequirement targetServerType) |
HostSpecStatus(HostSpec host) |
MultiHostChooser(HostSpec[] hostSpecs,
HostRequirement targetServerType,
java.util.Properties info) |
SingleHostChooser(HostSpec hostSpec,
HostRequirement targetServerType) |
Constructor and Description |
---|
PgConnection(HostSpec[] hostSpecs,
java.lang.String user,
java.lang.String database,
java.util.Properties info,
java.lang.String url) |