public class ClientConnectorConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DFLT_IDLE_TIMEOUT
Default idle timeout.
|
static int |
DFLT_MAX_OPEN_CURSORS_PER_CONN
Default max number of open cursors per connection.
|
static int |
DFLT_PORT
Default port.
|
static int |
DFLT_PORT_RANGE
Default port range.
|
static int |
DFLT_SOCK_BUF_SIZE
Default socket send and receive buffer size.
|
static boolean |
DFLT_TCP_NO_DELAY
Default value for
TCP_NODELAY socket option (value is true). |
static int |
DFLT_THREAD_POOL_SIZE
Default size of thread pool.
|
| Constructor and Description |
|---|
ClientConnectorConfiguration()
Creates SQL connector configuration with all default values.
|
ClientConnectorConfiguration(ClientConnectorConfiguration cfg)
Creates SQL connector configuration by copying all properties from given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost()
Get host.
|
long |
getIdleTimeout()
Gets idle timeout for client connections.
|
int |
getMaxOpenCursorsPerConnection()
Gets maximum number of opened cursors per connection.
|
int |
getPort()
Get port.
|
int |
getPortRange()
Get port range.
|
int |
getSocketReceiveBufferSize()
Gets socket receive buffer size.
|
int |
getSocketSendBufferSize()
Gets socket send buffer size.
|
int |
getThreadPoolSize()
Size of thread pool that is in charge of processing SQL requests.
|
boolean |
isJdbcEnabled()
Gets whether access through JDBC is enabled.
|
boolean |
isOdbcEnabled()
Gets whether access through ODBC is enabled.
|
boolean |
isTcpNoDelay()
Get TCP NO_DELAY flag.
|
boolean |
isThinClientEnabled()
Gets whether access through thin client is enabled.
|
ClientConnectorConfiguration |
setHost(String host)
Set host.
|
ClientConnectorConfiguration |
setIdleTimeout(long idleTimeout)
Sets idle timeout for client connections.
|
ClientConnectorConfiguration |
setJdbcEnabled(boolean jdbcEnabled)
Sets whether access through JDBC is enabled.
|
ClientConnectorConfiguration |
setMaxOpenCursorsPerConnection(int maxOpenCursorsPerConn)
Sets maximum number of opened cursors per connection.
|
ClientConnectorConfiguration |
setOdbcEnabled(boolean odbcEnabled)
Sets whether access through ODBC is enabled.
|
ClientConnectorConfiguration |
setPort(int port)
Set port.
|
ClientConnectorConfiguration |
setPortRange(int portRange)
Set port range.
|
ClientConnectorConfiguration |
setSocketReceiveBufferSize(int sockRcvBufSize)
Sets socket receive buffer size.
|
ClientConnectorConfiguration |
setSocketSendBufferSize(int sockSndBufSize)
Sets socket send buffer size.
|
ClientConnectorConfiguration |
setTcpNoDelay(boolean tcpNoDelay)
Set TCP NO_DELAY flag.
|
ClientConnectorConfiguration |
setThinClientEnabled(boolean thinCliEnabled)
Sets whether access through thin client is enabled.
|
ClientConnectorConfiguration |
setThreadPoolSize(int threadPoolSize)
Sets thread pool that is in charge of processing SQL requests.
|
String |
toString() |
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 static final int DFLT_IDLE_TIMEOUT
public ClientConnectorConfiguration()
public ClientConnectorConfiguration(ClientConnectorConfiguration cfg)
cfg - Configuration to copy.@Nullable public String getHost()
public ClientConnectorConfiguration setHost(@Nullable String host)
host - Host.public int getPort()
public ClientConnectorConfiguration setPort(int port)
port - Port.public int getPortRange()
public ClientConnectorConfiguration setPortRange(int portRange)
portRange - Port range.public int getSocketSendBufferSize()
Defaults to DFLT_SOCK_BUF_SIZE
public ClientConnectorConfiguration setSocketSendBufferSize(int sockSndBufSize)
getSocketSendBufferSize() for more information.sockSndBufSize - Socket send buffer size in bytes.public int getSocketReceiveBufferSize()
Defaults to DFLT_SOCK_BUF_SIZE.
public ClientConnectorConfiguration setSocketReceiveBufferSize(int sockRcvBufSize)
getSocketReceiveBufferSize() for more information.sockRcvBufSize - Socket receive buffer size in bytes.public boolean isTcpNoDelay()
public ClientConnectorConfiguration setTcpNoDelay(boolean tcpNoDelay)
tcpNoDelay - TCP NO_DELAY flag.public int getMaxOpenCursorsPerConnection()
Defaults to DFLT_MAX_OPEN_CURSORS_PER_CONN.
public ClientConnectorConfiguration setMaxOpenCursorsPerConnection(int maxOpenCursorsPerConn)
maxOpenCursorsPerConn - Maximum number of opened cursors.public int getThreadPoolSize()
Defaults DFLT_THREAD_POOL_SIZE.
public ClientConnectorConfiguration setThreadPoolSize(int threadPoolSize)
getThreadPoolSize() for more
information.threadPoolSize - Thread pool that is in charge of processing SQL requests.public long getIdleTimeout()
public ClientConnectorConfiguration setIdleTimeout(long idleTimeout)
idleTimeout - Idle timeout in milliseconds.this for chaining.getIdleTimeout()public boolean isJdbcEnabled()
Defaults to true.
public ClientConnectorConfiguration setJdbcEnabled(boolean jdbcEnabled)
Defaults to true.
jdbcEnabled - Whether access through JDBC is enabled.this for chaining.public boolean isOdbcEnabled()
Defaults to true.
public ClientConnectorConfiguration setOdbcEnabled(boolean odbcEnabled)
Defaults to true.
odbcEnabled - Whether access through ODBC is enabled.this for chaining.public boolean isThinClientEnabled()
Defaults to true.
public ClientConnectorConfiguration setThinClientEnabled(boolean thinCliEnabled)
Defaults to true.
thinCliEnabled - Whether access through thin client is enabled.this for chaining.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018