public class SqlQueryExecutionEvent extends EventAdapter
EventType.EVT_CACHE_QUERY_EXECUTED
, EventType.EVT_SQL_QUERY_EXECUTION
is fired only once for a request
and does not relate to a specific cache.
Grid events are used for notification about what happens within the grid. Note that by design Ignite keeps all events generated on the local node locally and it provides APIs for performing a distributed queries across multiple nodes:
IgniteEvents.remoteQuery(org.apache.ignite.lang.IgnitePredicate, long, int...)
-
asynchronously querying events occurred on the nodes specified, including remote nodes.
IgniteEvents.localQuery(org.apache.ignite.lang.IgnitePredicate, int...)
-
querying only local events stored on this local node.
IgniteEvents.localListen(org.apache.ignite.lang.IgnitePredicate, int...)
-
listening to local grid events (events from remote nodes not included).
IgniteEvents.waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)
.
It is highly recommended to enable only those events that your application logic requires
by using IgniteConfiguration.getIncludeEventTypes()
method in Ignite configuration.
Note that certain events are required for Ignite's internal operations and such events will still be generated but not stored by
event storage SPI if they are disabled in Ignite configuration.
EventType.EVT_SQL_QUERY_EXECUTION
,
Serialized FormConstructor and Description |
---|
SqlQueryExecutionEvent(ClusterNode node,
String msg,
@Nullable String text,
@Nullable Object[] args,
@Nullable UUID subjId) |
Modifier and Type | Method and Description |
---|---|
@Nullable Object[] |
arguments()
Gets query arguments.
|
@Nullable UUID |
subjectId()
Gets security subject ID.
|
@Nullable String |
text()
Gets query text.
|
String |
toString() |
compareTo, equals, hashCode, id, localOrder, message, message, name, node, node, shortDisplay, timestamp, type, type
public SqlQueryExecutionEvent(ClusterNode node, String msg, @Nullable @Nullable String text, @Nullable @Nullable Object[] args, @Nullable @Nullable UUID subjId)
node
- Node where event was fired.msg
- Event message.text
- Query text.args
- Query arguments.subjId
- Security subject ID.@Nullable public @Nullable String text()
Applicable for SQL
, SQL fields
queries.
@Nullable public @Nullable Object[] arguments()
Applicable for SQL
and SQL fields
queries.
@Nullable public @Nullable UUID subjectId()
public String toString()
toString
in class EventAdapter
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023