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 |
|---|---|
HostAndPortRange[] |
getAddresses() |
String |
getPassword() |
String |
getSchema() |
int |
getSocketReceiveBuffer() |
int |
getSocketSendBuffer() |
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.
|
String |
getUrl() |
String |
getUsername() |
boolean |
isAutoCloseServerCursor() |
boolean |
isCollocated() |
boolean |
isDistributedJoins() |
boolean |
isEnforceJoinOrder() |
boolean |
isLazy() |
boolean |
isReplicatedOnly() |
boolean |
isSkipReducerOnUpdate() |
boolean |
isSslTrustAll()
Gets trust any server certificate flag.
|
boolean |
isTcpNoDelay() |
void |
setAddresses(HostAndPortRange[] addrs) |
void |
setAutoCloseServerCursor(boolean autoCloseServerCursor) |
void |
setCollocated(boolean collocated) |
void |
setDistributedJoins(boolean distributedJoins) |
void |
setEnforceJoinOrder(boolean enforceJoinOrder) |
void |
setLazy(boolean lazy) |
void |
setPassword(String passwd) |
void |
setReplicatedOnly(boolean replicatedOnly) |
void |
setSchema(String schema) |
void |
setSkipReducerOnUpdate(boolean skipReducerOnUpdate) |
void |
setSocketReceiveBuffer(int size) |
void |
setSocketSendBuffer(int size) |
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 |
setUrl(String url) |
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 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 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()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018