@Deprecated public class SqlConnectorConfiguration extends Object
Deprecated as of Apache Ignite 2.3. Please use ClientConnectorConfiguration
and
IgniteConfiguration.setClientConnectorConfiguration(ClientConnectorConfiguration)
instead.
Modifier and Type | Field and Description |
---|---|
static int |
DFLT_MAX_OPEN_CURSORS_PER_CONN
Deprecated.
Default max number of open cursors per connection.
|
static int |
DFLT_PORT
Deprecated.
Default port.
|
static int |
DFLT_PORT_RANGE
Deprecated.
Default port range.
|
static int |
DFLT_SOCK_BUF_SIZE
Deprecated.
Default socket send and receive buffer size.
|
static boolean |
DFLT_TCP_NO_DELAY
Deprecated.
Default value for
TCP_NODELAY socket option (value is true). |
static int |
DFLT_THREAD_POOL_SIZE
Deprecated.
Default size of thread pool.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
@Nullable String |
getHost()
Deprecated.
Get host.
|
int |
getMaxOpenCursorsPerConnection()
Deprecated.
Gets maximum number of opened cursors per connection.
|
int |
getPort()
Deprecated.
Get port.
|
int |
getPortRange()
Deprecated.
Get port range.
|
int |
getSocketReceiveBufferSize()
Deprecated.
Gets socket receive buffer size.
|
int |
getSocketSendBufferSize()
Deprecated.
Gets socket send buffer size.
|
int |
getThreadPoolSize()
Deprecated.
Size of thread pool that is in charge of processing SQL requests.
|
boolean |
isTcpNoDelay()
Deprecated.
Get TCP NO_DELAY flag.
|
SqlConnectorConfiguration |
setHost(@Nullable String host)
Deprecated.
Set host.
|
SqlConnectorConfiguration |
setMaxOpenCursorsPerConnection(int maxOpenCursorsPerConn)
Deprecated.
Sets maximum number of opened cursors per connection.
|
SqlConnectorConfiguration |
setPort(int port)
Deprecated.
Set port.
|
SqlConnectorConfiguration |
setPortRange(int portRange)
Deprecated.
Set port range.
|
SqlConnectorConfiguration |
setSocketReceiveBufferSize(int sockRcvBufSize)
Deprecated.
Sets socket receive buffer size.
|
SqlConnectorConfiguration |
setSocketSendBufferSize(int sockSndBufSize)
Deprecated.
Sets socket send buffer size.
|
SqlConnectorConfiguration |
setTcpNoDelay(boolean tcpNoDelay)
Deprecated.
Set TCP NO_DELAY flag.
|
SqlConnectorConfiguration |
setThreadPoolSize(int threadPoolSize)
Deprecated.
Sets thread pool that is in charge of processing SQL requests.
|
String |
toString()
Deprecated.
|
public static final int DFLT_PORT
public static final int DFLT_PORT_RANGE
public static final int DFLT_SOCK_BUF_SIZE
public static final boolean DFLT_TCP_NO_DELAY
TCP_NODELAY
socket option (value is true).public static final int DFLT_MAX_OPEN_CURSORS_PER_CONN
public static final int DFLT_THREAD_POOL_SIZE
public SqlConnectorConfiguration()
public SqlConnectorConfiguration(SqlConnectorConfiguration cfg)
cfg
- Configuration to copy.@Nullable public @Nullable String getHost()
public SqlConnectorConfiguration setHost(@Nullable @Nullable String host)
host
- Host.public int getPort()
public SqlConnectorConfiguration setPort(int port)
port
- Port.public int getPortRange()
public SqlConnectorConfiguration setPortRange(int portRange)
portRange
- Port range.public int getSocketSendBufferSize()
Defaults to DFLT_SOCK_BUF_SIZE
public SqlConnectorConfiguration setSocketSendBufferSize(int sockSndBufSize)
getSocketSendBufferSize()
for more information.sockSndBufSize
- Socket send buffer size in bytes.public int getSocketReceiveBufferSize()
Defaults to DFLT_SOCK_BUF_SIZE
.
public SqlConnectorConfiguration setSocketReceiveBufferSize(int sockRcvBufSize)
getSocketReceiveBufferSize()
for more information.sockRcvBufSize
- Socket receive buffer size in bytes.public boolean isTcpNoDelay()
public SqlConnectorConfiguration setTcpNoDelay(boolean tcpNoDelay)
tcpNoDelay
- TCP NO_DELAY flag.public int getMaxOpenCursorsPerConnection()
Defaults to DFLT_MAX_OPEN_CURSORS_PER_CONN
.
public SqlConnectorConfiguration setMaxOpenCursorsPerConnection(int maxOpenCursorsPerConn)
maxOpenCursorsPerConn
- Maximum number of opened cursors.public int getThreadPoolSize()
Defaults DFLT_THREAD_POOL_SIZE
.
public SqlConnectorConfiguration setThreadPoolSize(int threadPoolSize)
getThreadPoolSize()
for more
information.threadPoolSize
- Thread pool that is in charge of processing SQL requests.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023