| Modifier and Type | Method and Description |
|---|---|
boolean |
Driver.acceptsURL(String url)
Returns true if the driver thinks it can open a connection to the given URL.
|
int |
PGProperty.getInt(Properties properties)
Return the int value for this connection parameter in the given
Properties. |
Integer |
PGProperty.getInteger(Properties properties)
Return the
Integer value for this connection parameter in the given Properties. |
DriverPropertyInfo[] |
Driver.getPropertyInfo(String url,
Properties info)
The getPropertyInfo method is intended to allow a generic GUI tool to discover what properties
it should prompt a human for in order to get enough information to connect to a database.
|
static Properties |
Driver.GetProps(Properties defaults,
Properties info) |
static Properties |
Driver.parseURL(String url,
Properties defaults)
Constructs a new DriverURL, splitting the specified URL into its component parts.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ClusterNodeCache.checkHostSpecs(HostSpec[] hostSpecs)
Verify parameters and replace the failed primary node
|
| Modifier and Type | Method and Description |
|---|---|
static SocketFactory |
SocketFactoryFactory.getSocketFactory(Properties info)
Instantiates
SocketFactory based on the PGProperty.SOCKET_FACTORY. |
static SSLSocketFactory |
SocketFactoryFactory.getSslSocketFactory(Properties info)
Instantiates
SSLSocketFactory based on the PGProperty.SSL_FACTORY. |
void |
CommandCompleteParser.parse(String status)
Parses
CommandComplete (B) message. |
static int |
Oid.valueOf(String oid) |
| Modifier and Type | Method and Description |
|---|---|
void |
CopyOperationImpl.handleCommandStatus(String status) |
void |
CopyDualImpl.handleCommandStatus(String status) |
protected abstract void |
CopyOperationImpl.handleCopydata(byte[] data)
Consume received copy data.
|
protected void |
CopyInImpl.handleCopydata(byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
void |
BaseDataSource.setUrl(String url)
Sets properties from a
DriverManager URL. |
void |
BaseDataSource.setURL(String url)
Sets properties from a
DriverManager URL. |
| Modifier and Type | Method and Description |
|---|---|
static SslMode |
SslMode.of(Properties info) |
void |
TimestampUtils.toBinDate(TimeZone tz,
byte[] bytes,
Date value)
Converts the SQL Date to binary representation for
Oid.DATE. |
Date |
TimestampUtils.toDateBin(TimeZone tz,
byte[] bytes)
Returns the SQL Date object matching the given bytes with
Oid.DATE. |
LocalDateTime |
TimestampUtils.toLocalDateTimeBin(byte[] bytes)
Returns the local date time object matching the given bytes with
Oid.TIMESTAMP or
Oid.TIMESTAMPTZ. |
LocalTime |
TimestampUtils.toLocalTimeBin(byte[] bytes)
Returns the SQL Time object matching the given bytes with
Oid.TIME. |
OffsetDateTime |
TimestampUtils.toOffsetDateTimeBin(byte[] bytes)
Returns the offset date time object matching the given bytes with Oid#TIMESTAMPTZ.
|
Time |
TimestampUtils.toTimeBin(TimeZone tz,
byte[] bytes)
Returns the SQL Time object matching the given bytes with
Oid.TIME or
Oid.TIMETZ. |
Timestamp |
TimestampUtils.toTimestampBin(TimeZone tz,
byte[] bytes,
boolean timestamptz)
Returns the SQL Timestamp object matching the given bytes with
Oid.TIMESTAMP or
Oid.TIMESTAMPTZ. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DataNode.checkDnState(Properties properties)
check a dn of the cluster if valid,
|
static String |
ConnectionManager.getURLIdentifierFromUrl(String url)
Get URLIdentifier from url, which is a unique id of cluster.
|
static boolean |
ConnectionInfo.parseEnableQuickAutoBalance(Properties properties)
Parse enableQuickAutoBalance.
|
static long |
ConnectionInfo.parseMaxIdleTimeBeforeTerminal(Properties properties)
Parse maxIdleTimeBeforeTerminal.
|
static int |
Cluster.parseMinReservedConPerCluster(Properties properties)
Parse minReservedConPerCluster, value range: [0, 100].
|
static int |
Cluster.parseMinReservedConPerDatanode(Properties properties)
Parse minReservedConPerDatanode, value range: [0, 100].
|
boolean |
ConnectionManager.setCluster(Properties properties)
Set cluster into connection manager.
|
static void |
LoadBalanceHeartBeating.setConnection(PgConnection pgConnection,
Properties props)
Set connection into connection manager.
|
boolean |
ConnectionManager.setConnection(PgConnection pgConnection,
Properties properties)
Cache this connection, if it's configured with autoBalance = "leastconn".
|
void |
Cluster.setConnection(PgConnection pgConnection,
Properties properties)
Add a new connection.
|
void |
DataNode.setConnection(PgConnection pgConnection,
Properties properties,
HostSpec hostSpec)
Set connection.
|
void |
ConnectionManager.setConnectionState(PgConnection pgConnection,
StatementCancelState state)
Set connection state of cached connections if it exists.
|
| Constructor and Description |
|---|
Cluster(String urlIdentifier,
Properties properties) |
ConnectionInfo(PgConnection pgConnection,
Properties properties,
HostSpec hostSpec) |
| Modifier and Type | Method and Description |
|---|---|
static void |
MakeSSL.convert(PGStream stream,
Properties info) |
void |
LibPQFactory.throwKeyManagerException()
Propagates any exception from
LazyKeyManager. |
void |
LazyKeyManager.throwKeyManagerException()
getCertificateChain and getPrivateKey cannot throw exeptions, therefore any exception is stored
in
LazyKeyManager.error and can be raised by this method. |
| Constructor and Description |
|---|
LibPQFactory(Properties info) |
| Constructor and Description |
|---|
LibPQFactory(Properties info)
Deprecated.
prefer
LibPQFactory |
| Constructor and Description |
|---|
StreamWrapper(InputStream stream) |
Copyright © 2023 openGauss. All rights reserved.