public class JdbcThinTcpIo extends Object
| Modifier and Type | Field and Description |
|---|---|
static ClientListenerProtocolVersion |
CURRENT_VER
Current version.
|
| Constructor and Description |
|---|
JdbcThinTcpIo(ConnectionProperties connProps)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the client IO.
|
ConnectionProperties |
connectionProperties() |
protected InetAddress[] |
getAllAddressesByHost(String host)
Get all addresses by host name.
|
void |
handshake(ClientListenerProtocolVersion ver)
Used for versions: 2.1.5 and 2.3.0.
|
int |
serverIndex() |
void |
start() |
void |
start(int timeout) |
public static final ClientListenerProtocolVersion CURRENT_VER
public JdbcThinTcpIo(ConnectionProperties connProps)
connProps - Connection properties.public void start()
throws SQLException,
IOException
SQLException - On connection error or reject.IOException - On IO error in handshake.public void start(int timeout)
throws SQLException,
IOException
timeout - Socket connection timeout in ms.SQLException - On connection error or reject.IOException - On IO error in handshake.protected InetAddress[] getAllAddressesByHost(String host) throws UnknownHostException
host - Host name.UnknownHostException - If host is unavailable.public void handshake(ClientListenerProtocolVersion ver) throws IOException, SQLException
ver - JDBC client version.IOException - On IO error.SQLException - On connection reject.public void close()
public ConnectionProperties connectionProperties()
public int serverIndex()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019