Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
B
- buildCommonUrlToPrimary(String, String) - Static method in class io.github.mfvanek.pg.connection.PgUrlParser
- buildCommonUrlToPrimary(String, String, Map<String, String>) - Static method in class io.github.mfvanek.pg.connection.PgUrlParser
- buildCommonUrlToPrimary(Set<String>) - Static method in class io.github.mfvanek.pg.connection.PgUrlParser
- buildCommonUrlToPrimary(Set<String>, Map<String, String>) - Static method in class io.github.mfvanek.pg.connection.PgUrlParser
C
- canBePrimary() - Method in interface io.github.mfvanek.pg.connection.PgHost
-
Determines whether this host can be a primary host.
- canBePrimary() - Method in class io.github.mfvanek.pg.connection.PgHostImpl
-
Determines whether this host can be a primary host.
- cannotBePrimary() - Method in interface io.github.mfvanek.pg.connection.PgHost
- ConnectionCredentials - Class in io.github.mfvanek.pg.connection
-
Parameters for connecting to the database.
D
- dataSourceFor(String, String, String) - Method in interface io.github.mfvanek.pg.connection.PgConnectionFactory
- dataSourceFor(String, String, String) - Method in class io.github.mfvanek.pg.connection.PgConnectionFactoryImpl
E
- equals(Object) - Method in class io.github.mfvanek.pg.connection.ConnectionCredentials
- equals(Object) - Method in class io.github.mfvanek.pg.connection.PgConnectionImpl
- equals(Object) - Method in class io.github.mfvanek.pg.connection.PgHostImpl
F
- forUrl(String, String, String) - Method in interface io.github.mfvanek.pg.connection.PgConnectionFactory
- forUrl(String, String, String) - Method in class io.github.mfvanek.pg.connection.PgConnectionFactoryImpl
G
- getConnectionsToAllHostsInCluster() - Method in interface io.github.mfvanek.pg.connection.HighAvailabilityPgConnection
-
Gets connections to all hosts in the cluster (including a connection to a primary host).
- getConnectionsToAllHostsInCluster() - Method in class io.github.mfvanek.pg.connection.HighAvailabilityPgConnectionImpl
-
Gets connections to all hosts in the cluster (including a connection to a primary host).
- getConnectionToPrimary() - Method in interface io.github.mfvanek.pg.connection.HighAvailabilityPgConnection
-
Gets connection to a primary host in the cluster.
- getConnectionToPrimary() - Method in class io.github.mfvanek.pg.connection.HighAvailabilityPgConnectionImpl
-
Gets connection to a primary host in the cluster.
- getConnectionUrls() - Method in class io.github.mfvanek.pg.connection.ConnectionCredentials
-
Gets a set of connection strings for accessing all hosts in the database cluster.
- getDataSource() - Method in interface io.github.mfvanek.pg.connection.PgConnection
-
Gets a standard
DataSource
object to access the database. - getDataSource() - Method in class io.github.mfvanek.pg.connection.PgConnectionImpl
-
Gets a standard
DataSource
object to access the database. - getHost() - Method in interface io.github.mfvanek.pg.connection.HostAware
-
Gets information about host in the cluster.
- getHost() - Method in class io.github.mfvanek.pg.connection.PgConnectionImpl
-
Gets information about host in the cluster.
- getName() - Method in interface io.github.mfvanek.pg.connection.PgHost
-
Gets the name of this host.
- getName() - Method in class io.github.mfvanek.pg.connection.PgHostImpl
-
Gets the name of this host.
- getPassword() - Method in class io.github.mfvanek.pg.connection.ConnectionCredentials
-
Gets the user's password for connecting to the database.
- getPgUrl() - Method in interface io.github.mfvanek.pg.connection.PgHost
-
Gets a valid connection string to this host.
- getPgUrl() - Method in class io.github.mfvanek.pg.connection.PgHostImpl
-
Gets a valid connection string to this host.
- getPort() - Method in interface io.github.mfvanek.pg.connection.PgHost
-
Gets the port of this host.
- getPort() - Method in class io.github.mfvanek.pg.connection.PgHostImpl
-
Gets the port of this host.
- getUserName() - Method in class io.github.mfvanek.pg.connection.ConnectionCredentials
-
Gets the name of the user to connect to the database.
H
- hashCode() - Method in class io.github.mfvanek.pg.connection.ConnectionCredentials
- hashCode() - Method in class io.github.mfvanek.pg.connection.PgConnectionImpl
- hashCode() - Method in class io.github.mfvanek.pg.connection.PgHostImpl
- HighAvailabilityPgConnection - Interface in io.github.mfvanek.pg.connection
-
An abstraction of a connection to a high availability cluster (with set of primary host and replicas).
- HighAvailabilityPgConnectionFactory - Interface in io.github.mfvanek.pg.connection
- HighAvailabilityPgConnectionFactoryImpl - Class in io.github.mfvanek.pg.connection
- HighAvailabilityPgConnectionFactoryImpl(PgConnectionFactory, PrimaryHostDeterminer) - Constructor for class io.github.mfvanek.pg.connection.HighAvailabilityPgConnectionFactoryImpl
- HighAvailabilityPgConnectionImpl - Class in io.github.mfvanek.pg.connection
-
Implementation of a connection to a high availability cluster (with set of primary host and replicas).
- HostAware - Interface in io.github.mfvanek.pg.connection
-
Allows getting information about database host.
I
- io.github.mfvanek.pg.connection - package io.github.mfvanek.pg.connection
- isPrimary(PgConnection) - Method in interface io.github.mfvanek.pg.connection.PrimaryHostDeterminer
-
Determines whether given connection is a connection to a primary host.
- isPrimary(PgConnection) - Method in class io.github.mfvanek.pg.connection.PrimaryHostDeterminerImpl
-
Determines whether given connection is a connection to a primary host.
O
- of(ConnectionCredentials) - Method in interface io.github.mfvanek.pg.connection.HighAvailabilityPgConnectionFactory
-
Creates instance of
HighAvailabilityPgConnection
with given credentials. - of(ConnectionCredentials) - Method in class io.github.mfvanek.pg.connection.HighAvailabilityPgConnectionFactoryImpl
-
Creates instance of
HighAvailabilityPgConnection
with given credentials. - of(PgConnection) - Static method in class io.github.mfvanek.pg.connection.HighAvailabilityPgConnectionImpl
-
Constructs a
HighAvailabilityPgConnection
object with the givenPgConnection
. - of(PgConnection, Collection<PgConnection>) - Static method in class io.github.mfvanek.pg.connection.HighAvailabilityPgConnectionImpl
-
Constructs a
HighAvailabilityPgConnection
object with the given connections to primary and replicas. - of(PgConnection, Collection<PgConnection>, long) - Static method in class io.github.mfvanek.pg.connection.HighAvailabilityPgConnectionImpl
-
Constructs a
HighAvailabilityPgConnection
object with the given connections to primary and replicas and a refresh interval. - of(Collection<String>, String, String) - Static method in class io.github.mfvanek.pg.connection.ConnectionCredentials
- of(DataSource, PgHost) - Static method in class io.github.mfvanek.pg.connection.PgConnectionImpl
-
Constructs a
PgConnection
object with given dataSource and host. - ofUrl(String) - Static method in class io.github.mfvanek.pg.connection.PgHostImpl
-
Constructs a
PgHost
object from given JDBC connection string. - ofUrl(String, String, String) - Static method in class io.github.mfvanek.pg.connection.ConnectionCredentials
- ofUrl(String, String, String) - Method in interface io.github.mfvanek.pg.connection.HighAvailabilityPgConnectionFactory
- ofUrls(Collection<String>, String, String) - Method in interface io.github.mfvanek.pg.connection.HighAvailabilityPgConnectionFactory
P
- PgConnection - Interface in io.github.mfvanek.pg.connection
-
A wrapper of standard
DataSource
interface with awareness of real host. - PgConnectionFactory - Interface in io.github.mfvanek.pg.connection
- PgConnectionFactoryImpl - Class in io.github.mfvanek.pg.connection
- PgConnectionFactoryImpl() - Constructor for class io.github.mfvanek.pg.connection.PgConnectionFactoryImpl
- PgConnectionImpl - Class in io.github.mfvanek.pg.connection
-
A standard implementation of
PgConnection
interface with awareness of real host. - PgHost - Interface in io.github.mfvanek.pg.connection
-
An abstraction of database host.
- PgHostImpl - Class in io.github.mfvanek.pg.connection
-
A standard implementation of
PgHost
interface. - PgSqlException - Exception in io.github.mfvanek.pg.connection
-
Custom unchecked exception for SQL errors.
- PgSqlException(SQLException) - Constructor for exception io.github.mfvanek.pg.connection.PgSqlException
- PgUrlParser - Class in io.github.mfvanek.pg.connection
- PrimaryHostDeterminer - Interface in io.github.mfvanek.pg.connection
- PrimaryHostDeterminerImpl - Class in io.github.mfvanek.pg.connection
- PrimaryHostDeterminerImpl() - Constructor for class io.github.mfvanek.pg.connection.PrimaryHostDeterminerImpl
T
- toString() - Method in class io.github.mfvanek.pg.connection.ConnectionCredentials
- toString() - Method in class io.github.mfvanek.pg.connection.PgConnectionImpl
- toString() - Method in class io.github.mfvanek.pg.connection.PgHostImpl
U
- URL_HEADER - Static variable in class io.github.mfvanek.pg.connection.PgUrlParser
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form