public class TaskWithAttributesEvent extends TaskEvent
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 |
---|
TaskWithAttributesEvent(ClusterNode node,
String msg,
int type,
IgniteUuid sesId,
String taskName,
String taskClsName,
boolean internal,
@Nullable UUID subjId,
Map<Object,Object> attributes) |
Modifier and Type | Method and Description |
---|---|
Map<Object,Object> |
attributes()
Gets map of attributes from attached task session.
|
String |
toString() |
internal, shortDisplay, subjectId, taskClassName, taskName, taskSessionId
public TaskWithAttributesEvent(ClusterNode node, String msg, int type, IgniteUuid sesId, String taskName, String taskClsName, boolean internal, @Nullable @Nullable UUID subjId, Map<Object,Object> attributes)
node
- Node.msg
- Optional message.type
- Event type.sesId
- Task session ID.taskName
- Task name.taskClsName
- Task class name.internal
- Task is internal.subjId
- Subject ID.attributes
- Task session attributes.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024