public class CacheQueryExecutedEvent<K,V> extends EventAdapter
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.
Constructor and Description |
---|
CacheQueryExecutedEvent(ClusterNode node,
String msg,
int type,
String qryType,
String cacheName,
String clsName,
String clause,
IgniteBiPredicate<K,V> scanQryFilter,
CacheEntryEventSerializableFilter<K,V> contQryFilter,
Object[] args,
UUID subjId,
String taskName) |
Modifier and Type | Method and Description |
---|---|
Object[] |
arguments()
Gets query arguments.
|
String |
cacheName()
Gets cache name on which query was executed.
|
String |
className()
Gets queried class name.
|
String |
clause()
Gets query clause.
|
CacheEntryEventSerializableFilter<K,V> |
continuousQueryFilter()
Gets continuous query filter.
|
String |
queryType()
Gets query type.
|
IgniteBiPredicate<K,V> |
scanQueryFilter()
Gets scan query filter.
|
UUID |
subjectId()
Gets security subject ID.
|
String |
taskName()
Gets the name of the task that executed the query (if any).
|
String |
toString() |
compareTo, equals, hashCode, id, localOrder, message, message, name, node, node, shortDisplay, timestamp, type, type
public CacheQueryExecutedEvent(ClusterNode node, String msg, int type, String qryType, @Nullable String cacheName, @Nullable String clsName, @Nullable String clause, @Nullable IgniteBiPredicate<K,V> scanQryFilter, @Nullable CacheEntryEventSerializableFilter<K,V> contQryFilter, @Nullable Object[] args, @Nullable UUID subjId, @Nullable String taskName)
node
- Node where event was fired.msg
- Event message.type
- Event type.qryType
- Query type.cacheName
- Cache name.clsName
- Class name.clause
- Clause.scanQryFilter
- Scan query filter.args
- Query arguments.subjId
- Security subject ID.public String queryType()
"SQL"
, "SQL_FIELDS"
, "FULL_TEXT"
, "SCAN"
,
"CONTINUOUS"
or "SPI"
.@Nullable public String cacheName()
@Nullable public String className()
Applicable for SQL
and @{code full text} queries.
@Nullable public String clause()
Applicable for SQL
, SQL fields
and @{code full text} queries.
@Nullable public IgniteBiPredicate<K,V> scanQueryFilter()
Applicable for scan
queries.
@Nullable public CacheEntryEventSerializableFilter<K,V> continuousQueryFilter()
Applicable for continuous
queries.
@Nullable public Object[] arguments()
Applicable for SQL
and SQL fields
queries.
@Nullable public UUID subjectId()
@Nullable public String taskName()
public String toString()
toString
in class EventAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017