public class OdbcRequestHandler extends Object implements ClientListenerRequestHandler
| Constructor and Description |
|---|
OdbcRequestHandler(GridKernalContext ctx,
GridSpinBusyLock busyLock,
ClientListenerResponseSender sender,
int maxCursors,
boolean distributedJoins,
boolean enforceJoinOrder,
boolean replicatedOnly,
boolean collocated,
boolean lazy,
boolean skipReducerOnUpdate,
@Nullable String qryEngine,
NestedTxMode nestedTxMode,
ClientListenerProtocolVersion ver,
OdbcConnectionContext connCtx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ClientListenerResponse |
doHandle(OdbcRequest req)
Handle ODBC request.
|
ClientListenerResponse |
handle(ClientListenerRequest req0)
Handle request.
|
ClientListenerResponse |
handleException(Throwable e,
ClientListenerRequest req)
Handle exception.
|
boolean |
isCancellationCommand(int cmdId)
Detect whether given command is a cancellation command.
|
boolean |
isCancellationSupported()
Checks whether query cancellation is supported within given version of protocol.
|
void |
onDisconnect()
Called whenever client is disconnected due to correct connection close
or due to
IOException during network operations. |
ClientListenerProtocolVersion |
protocolVersion() |
void |
registerRequest(long reqId,
int cmdType)
Registers request for futher cancellation if any.
|
void |
unregisterRequest(long reqId)
Try to unregister request.
|
void |
writeHandshake(BinaryWriterExImpl writer)
Write successful handshake response.
|
public OdbcRequestHandler(GridKernalContext ctx, GridSpinBusyLock busyLock, ClientListenerResponseSender sender, int maxCursors, boolean distributedJoins, boolean enforceJoinOrder, boolean replicatedOnly, boolean collocated, boolean lazy, boolean skipReducerOnUpdate, @Nullable @Nullable String qryEngine, NestedTxMode nestedTxMode, ClientListenerProtocolVersion ver, OdbcConnectionContext connCtx)
ctx - Context.busyLock - Shutdown latch.sender - Results sender.maxCursors - Maximum allowed cursors.distributedJoins - Distributed joins flag.enforceJoinOrder - Enforce join order flag.replicatedOnly - Replicated only flag.collocated - Collocated flag.lazy - Lazy flag.skipReducerOnUpdate - Skip reducer on update flag.qryEngine - Name of SQL query engine to use.nestedTxMode - Nested transaction mode.ver - Client protocol version.public ClientListenerResponse handle(ClientListenerRequest req0)
handle in interface ClientListenerRequestHandlerreq0 - Request.public ClientListenerResponse doHandle(OdbcRequest req)
req - ODBC request.public ClientListenerResponse handleException(Throwable e, ClientListenerRequest req)
handleException in interface ClientListenerRequestHandlere - Exception.req - Request.public void writeHandshake(BinaryWriterExImpl writer)
writeHandshake in interface ClientListenerRequestHandlerwriter - Binary writer.public void onDisconnect()
IOException during network operations.public boolean isCancellationCommand(int cmdId)
isCancellationCommand in interface ClientListenerRequestHandlercmdId - Command Idpublic boolean isCancellationSupported()
isCancellationSupported in interface ClientListenerRequestHandlertrue if supported, false otherwise.public void registerRequest(long reqId,
int cmdType)
registerRequest in interface ClientListenerRequestHandlerreqId - Request Id.cmdType - Command Type.public void unregisterRequest(long reqId)
unregisterRequest in interface ClientListenerRequestHandlerreqId - Request Id.public ClientListenerProtocolVersion protocolVersion()
protocolVersion in interface ClientListenerRequestHandler
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023