public class OdbcConnectionContext extends ClientListenerAbstractConnectionContext
| Modifier and Type | Field and Description |
|---|---|
static ClientListenerProtocolVersion |
VER_2_1_0
Version 2.1.0.
|
static ClientListenerProtocolVersion |
VER_2_1_5
Version 2.1.5: added "lazy" flag.
|
static ClientListenerProtocolVersion |
VER_2_3_0
Version 2.3.0: added "skipReducerOnUpdate" flag.
|
static ClientListenerProtocolVersion |
VER_2_3_2
Version 2.3.2: added multiple statements support.
|
static ClientListenerProtocolVersion |
VER_2_5_0
Version 2.5.0: added authentication.
|
static ClientListenerProtocolVersion |
VER_2_7_0
Version 2.7.0: added precision and scale.
|
static ClientListenerProtocolVersion |
VER_2_8_0
Version 2.8.0: added column nullability info.
|
ctx, ses, userAttrs| Constructor and Description |
|---|
OdbcConnectionContext(GridKernalContext ctx,
GridNioSession ses,
GridSpinBusyLock busyLock,
long connId,
int maxCursors)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
clientType() |
ClientListenerProtocolVersion |
defaultVersion() |
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
|
authenticate, clientDescriptor, connectionId, initClientDescriptor, kernalContext, securityContextpublic static final ClientListenerProtocolVersion VER_2_1_0
public static final ClientListenerProtocolVersion VER_2_1_5
public static final ClientListenerProtocolVersion VER_2_3_0
public static final ClientListenerProtocolVersion VER_2_3_2
public static final ClientListenerProtocolVersion VER_2_5_0
public static final ClientListenerProtocolVersion VER_2_7_0
public static final ClientListenerProtocolVersion VER_2_8_0
public OdbcConnectionContext(GridKernalContext ctx, GridNioSession ses, GridSpinBusyLock busyLock, long connId, int maxCursors)
ctx - Kernal Context.ses - Client's NIO session.busyLock - Shutdown busy lock.connId - Connection ID.maxCursors - Maximum allowed cursors.public byte clientType()
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 ClientListenerAbstractConnectionContext
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021