/** * @param sqlQry Sql query. * @param params Params of the query. * @param cctx cache context. * @param qryType actual query type, usually either SQL or SQL_FIELDS. */ private void sendQueryExecutedEvent( String sqlQry, Object[] params, GridCacheContext<?, ?> cctx, GridCacheQueryType qryType) { if (cctx.events().isRecordable(EVT_CACHE_QUERY_EXECUTED)) { ctx.event().record(new CacheQueryExecutedEvent<>( ctx.discovery().localNode(), qryType.name() + " query executed.", EVT_CACHE_QUERY_EXECUTED, qryType.name(), cctx.name(), null, sqlQry, null, null, params, ctx.localNodeId(), null)); } }
cctx.gridEvents().record(new CacheQueryExecutedEvent<>( cctx.localNode(), "SQL fields query executed.", cctx.gridEvents().record(new CacheQueryExecutedEvent<>( cctx.localNode(), "SPI query executed.",
cctx.gridEvents().record(new CacheQueryExecutedEvent<>( cctx.localNode(), "Scan query executed.", cctx.gridEvents().record(new CacheQueryExecutedEvent<>( cctx.localNode(), "Full text query executed.",
cctx.gridEvents().record(new CacheQueryExecutedEvent<>( locNode, "Scan query executed.",
ctx.writeEvent(writer, new CacheQueryExecutedEvent(node, msg, evtType, "qryType", "cacheName", "clsName", "clause", null, null, null, uuid, "taskName"));
/** * @param sqlQry Sql query. * @param params Params. */ private void sendQueryExecutedEvent(String sqlQry, Object[] params, GridCacheContext<?, ?> cctx) { if (cctx.events().isRecordable(EVT_CACHE_QUERY_EXECUTED)) { ctx.event().record(new CacheQueryExecutedEvent<>( ctx.discovery().localNode(), "SQL query executed.", EVT_CACHE_QUERY_EXECUTED, CacheQueryType.SQL.name(), cctx.name(), null, sqlQry, null, null, params, null, null)); } }
cctx.gridEvents().record(new CacheQueryExecutedEvent<>( cctx.localNode(), "SQL fields query executed.", cctx.gridEvents().record(new CacheQueryExecutedEvent<>( cctx.localNode(), "SPI query executed.",
cctx.gridEvents().record(new CacheQueryExecutedEvent<>( cctx.localNode(), "Scan query executed.", cctx.gridEvents().record(new CacheQueryExecutedEvent<>( cctx.localNode(), "Full text query executed.",
cctx.gridEvents().record(new CacheQueryExecutedEvent<>( locNode, "Scan query executed.",