public class CommandProcessor extends Object
| Constructor and Description |
|---|
CommandProcessor(GridKernalContext ctx,
SchemaManager schemaMgr,
IgniteH2Indexing idx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doRollback(@NotNull GridNearTxLocal tx)
Rollback and properly close transaction.
|
static boolean |
isCommand(org.gridgain.internal.h2.command.Prepared cmd) |
static boolean |
isCommandNoOp(org.gridgain.internal.h2.command.Prepared cmd) |
void |
onDisconnected()
Client disconnected callback.
|
void |
onMessage(UUID nodeId,
Object msg) |
CommandResult |
runCommand(String sql,
SqlCommand cmdNative,
GridSqlStatement cmdH2,
QueryParameters params,
@Nullable SqlClientContext cliCtx,
Long qryId)
Execute command.
|
void |
start()
Start executor.
|
void |
stop()
Close executor.
|
public CommandProcessor(GridKernalContext ctx, SchemaManager schemaMgr, IgniteH2Indexing idx)
ctx - Kernal context.schemaMgr - Schema manager.public void start()
public void stop()
public void onDisconnected()
public void onMessage(UUID nodeId, Object msg)
nodeId - Node ID.msg - Message.public CommandResult runCommand(String sql, SqlCommand cmdNative, GridSqlStatement cmdH2, QueryParameters params, @Nullable @Nullable SqlClientContext cliCtx, Long qryId) throws IgniteCheckedException
sql - SQL.cmdNative - Native command (if any).cmdH2 - H2 command (if any).params - Parameters.cliCtx - Client context.qryId - Running query ID.IgniteCheckedExceptionpublic static boolean isCommand(org.gridgain.internal.h2.command.Prepared cmd)
cmd - Statement.cmd is a DDL statement we're able to handle.public static boolean isCommandNoOp(org.gridgain.internal.h2.command.Prepared cmd)
cmd - Statement.cmd is a no-op.public void doRollback(@NotNull
@NotNull GridNearTxLocal tx)
throws IgniteCheckedException
tx - Transaction.IgniteCheckedException - if failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.17-p1 Release Date : November 27 2025