public interface Event extends Comparable<Event>, Serializable
IgniteEvents.remoteQuery(org.apache.ignite.lang.IgnitePredicate, long, int...)
- 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).
It is highly recommended to enable only those events that your application logic requires
by using either 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.
Internally used events are always "recordable" for notification purposes (regardless of whether they were enabled or disabled). But won't be sent down to SPI level if user specifically excluded them.
All discovery events are internal:
EventType.EVT_NODE_FAILED
EventType.EVT_NODE_LEFT
EventType.EVT_NODE_JOINED
EventType.EVT_NODE_METRICS_UPDATED
EventType.EVT_NODE_SEGMENTED
Hidden events are NEVER sent to SPI level. They serve purpose of local notification for the local node.
Hidden events:
Modifier and Type | Method and Description |
---|---|
IgniteUuid |
id()
Gets globally unique ID of this event.
|
long |
localOrder()
Gets locally unique ID that is atomically incremented for each event.
|
String |
message()
Gets optional message for this event.
|
String |
name()
Gets name of this event.
|
ClusterNode |
node()
Node where event occurred and was recorded
|
String |
shortDisplay()
Gets a shortened version of
toString() result. |
long |
timestamp()
Gets event timestamp.
|
int |
type()
Gets type of this event.
|
compareTo
IgniteUuid id()
localOrder()
long localOrder()
id()
this local ID can be used for ordering events on this node.
Note that for performance considerations Ignite doesn't order events globally.
id()
ClusterNode node()
String message()
null
) message for this event.int type()
EventType
.
NOTE: all types in range from 1 to 1000 are reserved for internal Ignite events and should not be used by user-defined events.
EventType
String name()
EventType
class.long timestamp()
localOrder()
instead.String shortDisplay()
toString()
result. Suitable for humans to read.toString()
result.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024