Package org.apache.ignite.configuration
Class SqlConnectorConfiguration
- java.lang.Object
- 
- org.apache.ignite.configuration.SqlConnectorConfiguration
 
- 
 @Deprecated public class SqlConnectorConfiguration extends Object Deprecated.SQL connection configuration.Deprecated as of Apache Ignite 2.3. Please use ClientConnectorConfigurationandIgniteConfiguration.setClientConnectorConfiguration(ClientConnectorConfiguration)instead.
- 
- 
Field SummaryFields Modifier and Type Field Description static intDFLT_MAX_OPEN_CURSORS_PER_CONNDeprecated.Default max number of open cursors per connection.static intDFLT_PORTDeprecated.Default port.static intDFLT_PORT_RANGEDeprecated.Default port range.static intDFLT_SOCK_BUF_SIZEDeprecated.Default socket send and receive buffer size.static booleanDFLT_TCP_NO_DELAYDeprecated.Default value forTCP_NODELAYsocket option (value is true).static intDFLT_THREAD_POOL_SIZEDeprecated.Default size of thread pool.
 - 
Constructor SummaryConstructors Constructor Description SqlConnectorConfiguration()Deprecated.Creates SQL connector configuration with all default values.SqlConnectorConfiguration(SqlConnectorConfiguration cfg)Deprecated.Creates SQL connector configuration by copying all properties from given configuration.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @Nullable StringgetHost()Deprecated.Get host.intgetMaxOpenCursorsPerConnection()Deprecated.Gets maximum number of opened cursors per connection.intgetPort()Deprecated.Get port.intgetPortRange()Deprecated.Get port range.intgetSocketReceiveBufferSize()Deprecated.Gets socket receive buffer size.intgetSocketSendBufferSize()Deprecated.Gets socket send buffer size.intgetThreadPoolSize()Deprecated.Size of thread pool that is in charge of processing SQL requests.booleanisTcpNoDelay()Deprecated.Get TCP NO_DELAY flag.SqlConnectorConfigurationsetHost(@Nullable String host)Deprecated.Set host.SqlConnectorConfigurationsetMaxOpenCursorsPerConnection(int maxOpenCursorsPerConn)Deprecated.Sets maximum number of opened cursors per connection.SqlConnectorConfigurationsetPort(int port)Deprecated.Set port.SqlConnectorConfigurationsetPortRange(int portRange)Deprecated.Set port range.SqlConnectorConfigurationsetSocketReceiveBufferSize(int sockRcvBufSize)Deprecated.Sets socket receive buffer size.SqlConnectorConfigurationsetSocketSendBufferSize(int sockSndBufSize)Deprecated.Sets socket send buffer size.SqlConnectorConfigurationsetTcpNoDelay(boolean tcpNoDelay)Deprecated.Set TCP NO_DELAY flag.SqlConnectorConfigurationsetThreadPoolSize(int threadPoolSize)Deprecated.Sets thread pool that is in charge of processing SQL requests.StringtoString()Deprecated.
 
- 
- 
- 
Field Detail- 
DFLT_PORTpublic static final int DFLT_PORT Deprecated.Default port.- See Also:
- Constant Field Values
 
 - 
DFLT_PORT_RANGEpublic static final int DFLT_PORT_RANGE Deprecated.Default port range.- See Also:
- Constant Field Values
 
 - 
DFLT_SOCK_BUF_SIZEpublic static final int DFLT_SOCK_BUF_SIZE Deprecated.Default socket send and receive buffer size.- See Also:
- Constant Field Values
 
 - 
DFLT_TCP_NO_DELAYpublic static final boolean DFLT_TCP_NO_DELAY Deprecated.Default value forTCP_NODELAYsocket option (value is true).- See Also:
- Constant Field Values
 
 - 
DFLT_MAX_OPEN_CURSORS_PER_CONNpublic static final int DFLT_MAX_OPEN_CURSORS_PER_CONN Deprecated.Default max number of open cursors per connection.- See Also:
- Constant Field Values
 
 - 
DFLT_THREAD_POOL_SIZEpublic static final int DFLT_THREAD_POOL_SIZE Deprecated.Default size of thread pool.
 
- 
 - 
Constructor Detail- 
SqlConnectorConfigurationpublic SqlConnectorConfiguration() Deprecated.Creates SQL connector configuration with all default values.
 - 
SqlConnectorConfigurationpublic SqlConnectorConfiguration(SqlConnectorConfiguration cfg) Deprecated.Creates SQL connector configuration by copying all properties from given configuration.- Parameters:
- cfg- Configuration to copy.
 
 
- 
 - 
Method Detail- 
getHost@Nullable public @Nullable String getHost() Deprecated.Get host.- Returns:
- Host.
 
 - 
setHostpublic SqlConnectorConfiguration setHost(@Nullable @Nullable String host) Deprecated.Set host.- Parameters:
- host- Host.
- Returns:
- This instance for chaining.
 
 - 
getPortpublic int getPort() Deprecated.Get port.- Returns:
- Port.
 
 - 
setPortpublic SqlConnectorConfiguration setPort(int port) Deprecated.Set port.- Parameters:
- port- Port.
- Returns:
- This instance for chaining.
 
 - 
getPortRangepublic int getPortRange() Deprecated.Get port range.- Returns:
- Port range.
 
 - 
setPortRangepublic SqlConnectorConfiguration setPortRange(int portRange) Deprecated.Set port range.- Parameters:
- portRange- Port range.
- Returns:
- This instance for chaining.
 
 - 
getSocketSendBufferSizepublic int getSocketSendBufferSize() Deprecated.Gets socket send buffer size. When set to zero, operation system default will be used.Defaults to DFLT_SOCK_BUF_SIZE- Returns:
- Socket send buffer size in bytes.
 
 - 
setSocketSendBufferSizepublic SqlConnectorConfiguration setSocketSendBufferSize(int sockSndBufSize) Deprecated.Sets socket send buffer size. SeegetSocketSendBufferSize()for more information.- Parameters:
- sockSndBufSize- Socket send buffer size in bytes.
- Returns:
- This instance for chaining.
 
 - 
getSocketReceiveBufferSizepublic int getSocketReceiveBufferSize() Deprecated.Gets socket receive buffer size. When set to zero, operation system default will be used.Defaults to DFLT_SOCK_BUF_SIZE.- Returns:
- Socket receive buffer size in bytes.
 
 - 
setSocketReceiveBufferSizepublic SqlConnectorConfiguration setSocketReceiveBufferSize(int sockRcvBufSize) Deprecated.Sets socket receive buffer size. SeegetSocketReceiveBufferSize()for more information.- Parameters:
- sockRcvBufSize- Socket receive buffer size in bytes.
- Returns:
- This instance for chaining.
 
 - 
isTcpNoDelaypublic boolean isTcpNoDelay() Deprecated.Get TCP NO_DELAY flag.- Returns:
- TCP NO_DELAY flag.
 
 - 
setTcpNoDelaypublic SqlConnectorConfiguration setTcpNoDelay(boolean tcpNoDelay) Deprecated.Set TCP NO_DELAY flag.- Parameters:
- tcpNoDelay- TCP NO_DELAY flag.
- Returns:
- This instance for chaining.
 
 - 
getMaxOpenCursorsPerConnectionpublic int getMaxOpenCursorsPerConnection() Deprecated.Gets maximum number of opened cursors per connection.Defaults to DFLT_MAX_OPEN_CURSORS_PER_CONN.- Returns:
- Maximum number of opened cursors.
 
 - 
setMaxOpenCursorsPerConnectionpublic SqlConnectorConfiguration setMaxOpenCursorsPerConnection(int maxOpenCursorsPerConn) Deprecated.Sets maximum number of opened cursors per connection.- Parameters:
- maxOpenCursorsPerConn- Maximum number of opened cursors.
- Returns:
- This instance for chaining.
 
 - 
getThreadPoolSizepublic int getThreadPoolSize() Deprecated.Size of thread pool that is in charge of processing SQL requests.Defaults DFLT_THREAD_POOL_SIZE.- Returns:
- Thread pool that is in charge of processing SQL requests.
 
 - 
setThreadPoolSizepublic SqlConnectorConfiguration setThreadPoolSize(int threadPoolSize) Deprecated.Sets thread pool that is in charge of processing SQL requests. SeegetThreadPoolSize()for more information.- Parameters:
- threadPoolSize- Thread pool that is in charge of processing SQL requests.
- Returns:
- This instance for chaining.
 
 
- 
 
-