public interface ConnectionProperties
| Modifier and Type | Field and Description |
|---|---|
static String |
SSL_MODE_DISABLE
SSL mode: DISABLE.
|
static String |
SSL_MODE_REQUIRE
SSL mode: REQUIRE.
|
| Modifier and Type | Method and Description |
|---|---|
String |
disabledFeatures()
Any JDBC features could be force disabled.
|
void |
disabledFeatures(String features) |
HostAndPortRange[] |
getAddresses() |
@Nullable int |
getConnectionTimeout()
Note: zero value means there is no limits.
|
int |
getPartitionAwarenessPartitionDistributionsCacheSize() |
int |
getPartitionAwarenessSqlCacheSize() |
String |
getPassword() |
@Nullable Integer |
getQueryTimeout()
Note: zero value means there is no limits.
|
String |
getSchema() |
int |
getSocketReceiveBuffer() |
int |
getSocketSendBuffer() |
String |
getSslCipherSuites()
Gets cipher suites.
|
String |
getSslClientCertificateKeyStorePassword()
Gets key store password.
|
String |
getSslClientCertificateKeyStoreType()
Gets key store type used for context creation.
|
String |
getSslClientCertificateKeyStoreUrl()
Gets the key store URL.
|
String |
getSslFactory()
Gets the class name of the custom implementation of the Factory<SSLSocketFactory>.
|
String |
getSslKeyAlgorithm()
Gets algorithm that will be used to create a key manager.
|
String |
getSslMode()
Gets SSL connection mode.
|
String |
getSslProtocol()
Gets protocol for secure transport.
|
String |
getSslTrustCertificateKeyStorePassword()
Gets trust store password.
|
String |
getSslTrustCertificateKeyStoreType()
Gets trust store type.
|
String |
getSslTrustCertificateKeyStoreUrl()
Gets the trust store URL.
|
@Nullable Integer |
getUpdateBatchSize()
Note: Batch size of 1 prevents deadlock on update where keys sequence are different in several concurrent updates.
|
String |
getUrl() |
String |
getUserAttributesFactory()
Gets the class name of the custom implementation of the Factory<Map<String, String>>.
|
String |
getUsername() |
boolean |
isAutoCloseServerCursor() |
boolean |
isCollocated() |
@Nullable Boolean |
isDataPageScanEnabled() |
boolean |
isDistributedJoins() |
boolean |
isEnforceJoinOrder() |
boolean |
isKeepBinary()
Get keep binary configuration flag.
|
boolean |
isLazy() |
boolean |
isPartitionAwareness() |
boolean |
isReplicatedOnly() |
boolean |
isSkipReducerOnUpdate() |
boolean |
isSslTrustAll()
Gets trust any server certificate flag.
|
boolean |
isTcpNoDelay() |
String |
nestedTxMode() |
void |
nestedTxMode(String nestedTxMode) |
void |
setAddresses(HostAndPortRange[] addrs) |
void |
setAutoCloseServerCursor(boolean autoCloseServerCursor) |
void |
setCollocated(boolean collocated) |
void |
setConnectionTimeout(@Nullable Integer connTimeout)
Note: zero value means there is no limits.
|
void |
setDataPageScanEnabled(@Nullable Boolean dataPageScanEnabled) |
void |
setDistributedJoins(boolean distributedJoins) |
void |
setEnforceJoinOrder(boolean enforceJoinOrder) |
void |
setKeepBinary(boolean keepBinary)
Set to
true to keep binary objects in binary form. |
void |
setLazy(boolean lazy) |
void |
setPartitionAwareness(boolean partitionAwareness) |
void |
setPartitionAwarenessPartitionDistributionsCacheSize(int partitionAwarenessPartDistributionsCacheSize)
Sets partition distributions cache size that is used within partition awareness optimizations.
|
void |
setPartitionAwarenessSqlCacheSize(int partitionAwarenessSqlCacheSize)
Sets SQL cache size that is used within partition awareness optimizations.
|
void |
setPassword(String passwd) |
void |
setQueryTimeout(@Nullable Integer qryTimeout)
Note: zero value means there is no limits.
|
void |
setReplicatedOnly(boolean replicatedOnly) |
void |
setSchema(String schema) |
void |
setSkipReducerOnUpdate(boolean skipReducerOnUpdate) |
void |
setSocketReceiveBuffer(int size) |
void |
setSocketSendBuffer(int size) |
void |
setSslCipherSuites(String sslCipherSuites)
Override default cipher suites.
|
void |
setSslClientCertificateKeyStorePassword(String passwd)
Sets key store password.
|
void |
setSslClientCertificateKeyStoreType(String ksType)
Sets key store type used in context initialization.
|
void |
setSslClientCertificateKeyStoreUrl(String url)
Sets path to the key store file.
|
void |
setSslFactory(String sslFactory)
Sets the class name of the custom implementation of the Factory<SSLSocketFactory>.
|
void |
setSslKeyAlgorithm(String keyAlgorithm)
Sets key manager algorithm that will be used to create a key manager.
|
void |
setSslMode(String mode)
Use SSL connection to Ignite node.
|
void |
setSslProtocol(String sslProtocol)
Sets protocol for secure transport.
|
void |
setSslTrustAll(boolean trustAll)
Sets to
true to trust any server certificate (revoked, expired or self-signed SSL certificates). |
void |
setSslTrustCertificateKeyStorePassword(String passwd)
Sets trust store password.
|
void |
setSslTrustCertificateKeyStoreType(String ksType)
Sets trust store type.
|
void |
setSslTrustCertificateKeyStoreUrl(String url)
Sets path to the trust store file.
|
void |
setTcpNoDelay(boolean tcpNoDelay) |
void |
setUpdateBatchSize(@Nullable Integer updateBatchSize)
Note: Set to 1 to prevent deadlock on update where keys sequence are different in several concurrent updates.
|
void |
setUrl(String url) |
void |
setUserAttributesFactory(String sslFactory)
Sets the class name of the custom implementation of the Factory<Map<String, String>>.
|
void |
setUsername(String name) |
static final String SSL_MODE_DISABLE
static final String SSL_MODE_REQUIRE
String getSchema()
void setSchema(String schema)
schema - Schema name of the connection.String getUrl()
void setUrl(String url) throws SQLException
url - The URL of the connection.SQLException - On invalid URL.HostAndPortRange[] getAddresses()
void setAddresses(HostAndPortRange[] addrs)
addrs - Ignite nodes addresses.boolean isDistributedJoins()
void setDistributedJoins(boolean distributedJoins)
distributedJoins - Distributed joins flag.boolean isEnforceJoinOrder()
void setEnforceJoinOrder(boolean enforceJoinOrder)
enforceJoinOrder - Enforce join order flag.boolean isCollocated()
void setCollocated(boolean collocated)
collocated - Collocated flag.boolean isReplicatedOnly()
void setReplicatedOnly(boolean replicatedOnly)
replicatedOnly - Replicated only flag.boolean isAutoCloseServerCursor()
void setAutoCloseServerCursor(boolean autoCloseServerCursor)
autoCloseServerCursor - Auto close server cursors flag.int getSocketSendBuffer()
void setSocketSendBuffer(int size)
throws SQLException
size - Socket send buffer size.SQLException - On error.int getSocketReceiveBuffer()
void setSocketReceiveBuffer(int size)
throws SQLException
size - Socket receive buffer size.SQLException - On error.boolean isTcpNoDelay()
void setTcpNoDelay(boolean tcpNoDelay)
tcpNoDelay - TCP no delay flag.boolean isLazy()
void setLazy(boolean lazy)
lazy - Lazy query execution flag.boolean isSkipReducerOnUpdate()
void setSkipReducerOnUpdate(boolean skipReducerOnUpdate)
skipReducerOnUpdate - Skip reducer on update flag.String nestedTxMode()
void nestedTxMode(String nestedTxMode)
nestedTxMode - Nested transactions handling strategy.String getSslMode()
setSslMode(String).void setSslMode(String mode)
"require" SSL context must be configured.
setSslClientCertificateKeyStoreUrl(java.lang.String) property and related properties must be set up
or JSSE properties must be set up (see javax.net.ssl.keyStore and other javax.net.ssl.*
properties)
In case set to "disable" plain connection is used.
Available modes: "disable", "require". Default value is "disable"mode - SSL mode.String getSslProtocol()
void setSslProtocol(String sslProtocol)
See more at JSSE Reference Guide.
sslProtocol - SSL protocol name.String getSslCipherSuites()
void setSslCipherSuites(String sslCipherSuites)
See more at JSSE Reference Guide.
sslCipherSuites - SSL cipher suites.String getSslKeyAlgorithm()
void setSslKeyAlgorithm(String keyAlgorithm)
See more at JSSE Reference Guide.
keyAlgorithm - Key algorithm name.String getSslClientCertificateKeyStoreUrl()
void setSslClientCertificateKeyStoreUrl(String url)
getSslMode() is required and key store URL isn't specified by Ignite properties
(e.g. at JDBC URL) the JSSE property javax.net.ssl.keyStore will be used.url - Client certificate KeyStore URL.String getSslClientCertificateKeyStorePassword()
void setSslClientCertificateKeyStorePassword(String passwd)
getSslMode() is required and key store password isn't specified by Ignite properties
(e.g. at JDBC URL) the JSSE property javax.net.ssl.keyStorePassword will be used.passwd - Client certificate KeyStore password.String getSslClientCertificateKeyStoreType()
void setSslClientCertificateKeyStoreType(String ksType)
getSslMode() is required and key store type isn't specified by Ignite properties
(e.g. at JDBC URL)the JSSE property javax.net.ssl.keyStoreType will be used.
In case both Ignite properties and JSSE properties are not set the default 'JKS' type is used.
See more at JSSE Reference Guide.
ksType - Client certificate KeyStore type.String getSslTrustCertificateKeyStoreUrl()
void setSslTrustCertificateKeyStoreUrl(String url)
setSslTrustCertificateKeyStoreUrl(String), setSslTrustAll(boolean)
properties must be set.
In case getSslMode() is required and trust store URL isn't specified by Ignite properties
(e.g. at JDBC URL) the JSSE property javax.net.ssl.trustStore will be used.url - Trusted certificate KeyStore URL.String getSslTrustCertificateKeyStorePassword()
void setSslTrustCertificateKeyStorePassword(String passwd)
getSslMode() is required and trust store password isn't specified by Ignite properties
(e.g. at JDBC URL) the JSSE property javax.net.ssl.trustStorePassword will be used.passwd - Trusted certificate KeyStore password.String getSslTrustCertificateKeyStoreType()
void setSslTrustCertificateKeyStoreType(String ksType)
getSslMode() is required and trust store type isn't specified by Ignite properties
(e.g. at JDBC URL) the JSSE property javax.net.ssl.trustStoreType will be used.
In case both Ignite properties and JSSE properties are not set the default 'JKS' type is used.ksType - Trusted certificate KeyStore type.boolean isSslTrustAll()
void setSslTrustAll(boolean trustAll)
true to trust any server certificate (revoked, expired or self-signed SSL certificates).
Defaults is false.
Note: Do not enable this option in production you are ever going to use
on a network you do not entirely trust. Especially anything going over the public internet.
trustAll - Trust all certificates flag.String getSslFactory()
void setSslFactory(String sslFactory)
getSslMode() is required and factory is specified the custom factory will be used
instead of JSSE socket factory. So, other SSL properties will be ignored.sslFactory - Custom class name that implements Factory<SSLSocketFactory>.void setUsername(String name)
name - User name to authentication.String getUsername()
void setPassword(String passwd)
passwd - User's password.String getPassword()
@Nullable @Nullable Boolean isDataPageScanEnabled()
true if data page scan support is enabled for this connection, false if it's disabled
and null for server default.void setDataPageScanEnabled(@Nullable
@Nullable Boolean dataPageScanEnabled)
dataPageScanEnabled - true if data page scan support is enabled for this connection,
if false then it's disabled, if null then server should use its default settings.boolean isPartitionAwareness()
true if jdbc thin partition awareness is enabled for this connection,
false if it's disabled.void setPartitionAwareness(boolean partitionAwareness)
partitionAwareness - true if jdbc thin partition awareness is enabled
for this connection, if false then it's disabled.@Nullable @Nullable Integer getUpdateBatchSize()
void setUpdateBatchSize(@Nullable
@Nullable Integer updateBatchSize)
throws SQLException
updateBatchSize - update internal bach size.SQLException - On error.int getPartitionAwarenessSqlCacheSize()
void setPartitionAwarenessSqlCacheSize(int partitionAwarenessSqlCacheSize)
throws SQLException
partitionAwarenessSqlCacheSize - SQL cache size.SQLException - On error.int getPartitionAwarenessPartitionDistributionsCacheSize()
void setPartitionAwarenessPartitionDistributionsCacheSize(int partitionAwarenessPartDistributionsCacheSize)
throws SQLException
partitionAwarenessPartDistributionsCacheSize - Partition distributions cache size.SQLException - On error.@Nullable @Nullable Integer getQueryTimeout()
void setQueryTimeout(@Nullable
@Nullable Integer qryTimeout)
throws SQLException
qryTimeout - Query timeout in seconds.SQLException@Nullable @Nullable int getConnectionTimeout()
void setConnectionTimeout(@Nullable
@Nullable Integer connTimeout)
throws SQLException
connTimeout - Connection timeout in milliseconds.SQLExceptionString getUserAttributesFactory()
void setUserAttributesFactory(String sslFactory)
GridRestRequest or
ClientListenerAbstractConnectionContext (depends on client type).sslFactory - Custom class name that implements Factory<Map<String, String>>.String disabledFeatures()
JdbcThinFeature.
The string should contain enumeration of feature names, separated by the comma.void disabledFeatures(String features)
features - Disabled features. See JdbcThinFeature.
The string should contain enumeration of feature names, separated by the comma.boolean isKeepBinary()
void setKeepBinary(boolean keepBinary)
true to keep binary objects in binary form.
Defaults is false.
keepBinary - Whether to keep binary objects in binary form.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020