Package com.mckoi.database.jdbcserver
Class TCPJDBCServerConnection
- java.lang.Object
-
- com.mckoi.database.jdbcserver.JDBCProcessor
-
- com.mckoi.database.jdbcserver.StreamJDBCServerConnection
-
- com.mckoi.database.jdbcserver.TCPJDBCServerConnection
-
- All Implemented Interfaces:
ProtocolConstants,ServerConnection
final class TCPJDBCServerConnection extends StreamJDBCServerConnection
A ServerConnection that processes JDBC queries from a client from a TCP Socket.
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.SocketconnectionThe socket connection with the client.private booleanis_closedIs set to true when the connection to the client is closed.-
Fields inherited from interface com.mckoi.database.jdbc.ProtocolConstants
ACKNOWLEDGEMENT, AUTHENTICATION_ERROR, CLOSE, DATABASE_EVENT, DISPOSE_RESULT, DISPOSE_STREAMABLE_OBJECT, EXCEPTION, FAILED, PING, PUSH_STREAMABLE_OBJECT_PART, QUERY, RESULT_SECTION, SERVER_REQUEST, STREAMABLE_OBJECT_SECTION, SUCCESS, USER_AUTHENTICATION_FAILED, USER_AUTHENTICATION_PASSED
-
-
Constructor Summary
Constructors Constructor Description TCPJDBCServerConnection(DatabaseInterface db_interface, java.net.Socket socket, DebugLogger logger)Constructs the ServerConnection object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Completely closes the connection to the client.booleanisClosed()Returns true if the connection to the client has been closed.-
Methods inherited from class com.mckoi.database.jdbcserver.StreamJDBCServerConnection
blockForRequest, ping, processRequest, requestPending, sendEvent
-
Methods inherited from class com.mckoi.database.jdbcserver.JDBCProcessor
dispose, finalize, getState, printByteArray, processJDBCCommand
-
-
-
-
Constructor Detail
-
TCPJDBCServerConnection
TCPJDBCServerConnection(DatabaseInterface db_interface, java.net.Socket socket, DebugLogger logger) throws java.io.IOException
Constructs the ServerConnection object.- Throws:
java.io.IOException
-
-
Method Detail
-
close
public void close() throws java.io.IOExceptionCompletely closes the connection to the client.- Specified by:
closein interfaceServerConnection- Specified by:
closein classJDBCProcessor- Throws:
java.io.IOException
-
isClosed
public boolean isClosed() throws java.io.IOExceptionReturns true if the connection to the client has been closed.- Specified by:
isClosedin classJDBCProcessor- Throws:
java.io.IOException
-
-