public class JdbcConnectionContext extends ClientListenerAbstractConnectionContext
| Modifier and Type | Field and Description |
|---|---|
static ClientListenerProtocolVersion |
CURRENT_VER
Current version.
|
ctx, userAttrs| Constructor and Description |
|---|
JdbcConnectionContext(GridKernalContext ctx,
GridSpinBusyLock busyLock,
long connId,
int maxCursors)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ClientListenerProtocolVersion |
defaultVersion() |
AffinityTopologyVersion |
getAffinityTopologyVersionIfChanged() |
ClientListenerRequestHandler |
handler()
Handler getter.
|
void |
initializeFromHandshake(GridNioSession ses,
ClientListenerProtocolVersion ver,
BinaryReaderExImpl reader)
Initialize from handshake message.
|
boolean |
isVersionSupported(ClientListenerProtocolVersion ver) |
void |
onDisconnected()
Called whenever client is disconnected due to correct connection close
or due to
IOException during network operations. |
ClientListenerMessageParser |
parser()
Parser getter
|
JdbcProtocolContext |
protocolContext() |
authenticate, authorizationContext, connectionId, kernalContext, securityContextpublic static final ClientListenerProtocolVersion CURRENT_VER
public JdbcConnectionContext(GridKernalContext ctx, GridSpinBusyLock busyLock, long connId, int maxCursors)
ctx - Kernal Context.busyLock - Shutdown busy lock.connId - Connection ID.maxCursors - Maximum allowed cursors.public boolean isVersionSupported(ClientListenerProtocolVersion ver)
ver - Version to check.true if version is supported.public ClientListenerProtocolVersion defaultVersion()
public void initializeFromHandshake(GridNioSession ses, ClientListenerProtocolVersion ver, BinaryReaderExImpl reader) throws IgniteCheckedException
ses - NIO session.ver - Protocol version.reader - Reader set to the configuration part of the handshake message.IgniteCheckedException - On error.public ClientListenerRequestHandler handler()
public ClientListenerMessageParser parser()
public void onDisconnected()
IOException during network operations.onDisconnected in interface ClientListenerConnectionContextonDisconnected in class ClientListenerAbstractConnectionContextpublic AffinityTopologyVersion getAffinityTopologyVersionIfChanged()
public JdbcProtocolContext protocolContext()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020