|
GridGain 4.3.1e
Enterprise "Big Data" Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gridgain.grid.lang.GridMetadataAwareAdapter
org.gridgain.grid.events.GridEventAdapter
org.gridgain.grid.events.GridJobEvent
public class GridJobEvent
Grid job event.
Grid events are used for notification about what happens within the grid. Note that by design GridGain keeps all events generated on the local node locally and it provides APIs for performing a distributed queries across multiple nodes:
GridProjection.remoteEvents(org.gridgain.grid.lang.GridPredicate , long, org.gridgain.grid.lang.GridPredicate[]) -
querying events occurred on the nodes specified, including remote nodes.
GridProjection.remoteEventsAsync(org.gridgain.grid.lang.GridPredicate , long, org.gridgain.grid.lang.GridPredicate[]) -
asynchronously querying events occurred on the nodes specified, including remote nodes.
Grid.localEvents(org.gridgain.grid.lang.GridPredicate[]) -
querying only local events stored on this local node.
Grid.addLocalEventListener(GridLocalEventListener , int...) -
listening to local grid events (events from remote nodes not included).
Grid.waitForEventAsync(org.gridgain.grid.lang.GridPredicate , int...)Grid.waitForEvent(long, Runnable, org.gridgain.grid.lang.GridPredicate , int...)
It is highly recommended to enable only those events that your application logic requires
by using either GridConfiguration.getExcludeEventTypes() or
GridConfiguration.getIncludeEventTypes() methods in GridGain configuration. Note that certain
events are required for GridGain's internal operations and such events will still be generated but not stored by
event storage SPI if they are disabled in GridGain configuration.
GridEventType.EVT_JOB_CANCELLED,
GridEventType.EVT_JOB_FAILED,
GridEventType.EVT_JOB_FAILED_OVER,
GridEventType.EVT_JOB_FINISHED,
GridEventType.EVT_JOB_MAPPED,
GridEventType.EVT_JOB_QUEUED,
GridEventType.EVT_JOB_REJECTED,
GridEventType.EVT_JOB_RESULTED,
GridEventType.EVT_JOB_STARTED,
GridEventType.EVT_JOB_TIMEDOUT,
GridEventType.EVTS_JOB_EXECUTION,
Serialized Form

| Constructor Summary | |
|---|---|
GridJobEvent()
No-arg constructor. |
|
GridJobEvent(UUID nodeId,
String msg,
int type)
Creates job event with given parameters. |
|
| Method Summary | |
|---|---|
GridUuid |
jobId()
Gets job ID. |
void |
jobId(GridUuid jobId)
Sets job ID. |
String |
shortDisplay()
Gets a shortened version of toString() result. |
String |
taskClassName()
Gets name of task class that triggered this event. |
void |
taskClassName(String taskClsName)
Sets name of the task class that triggered this event. |
String |
taskName()
Gets name of the task that triggered the event. |
void |
taskName(String taskName)
Sets name of the task that triggered this event. |
UUID |
taskNodeId()
Get ID of the node where parent task of the job has originated. |
void |
taskNodeId(UUID taskNodeId)
Sets ID of the node where parent task of the job has originated. |
GridUuid |
taskSessionId()
Gets task session ID of the task that triggered this event. |
void |
taskSessionId(GridUuid sesId)
Sets task session ID of the task that triggered this event. |
String |
toString()
|
| Methods inherited from class org.gridgain.grid.events.GridEventAdapter |
|---|
compareTo, equals, hashCode, id, localOrder, message, message, name, nodeId, nodeId, timestamp, type, type |
| Methods inherited from class org.gridgain.grid.lang.GridMetadataAwareAdapter |
|---|
addMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, readExternalMeta, removeMeta, removeMeta, replaceMeta, writeExternalMeta |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.gridgain.grid.GridMetadataAware |
|---|
addMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, removeMeta, removeMeta, replaceMeta |
| Constructor Detail |
|---|
public GridJobEvent()
public GridJobEvent(UUID nodeId,
String msg,
int type)
nodeId - Node ID.msg - Optional message.type - Event type.| Method Detail |
|---|
public String shortDisplay()
toString() result. Suitable for humans to read.
shortDisplay in interface GridEventshortDisplay in class GridEventAdaptertoString() result.public String taskName()
public String taskClassName()
public GridUuid taskSessionId()
public GridUuid jobId()
public void taskName(String taskName)
taskName - Task name to set.public void taskClassName(String taskClsName)
taskClsName - Task class name to set.public void taskSessionId(GridUuid sesId)
sesId - Task session ID to set.public void jobId(GridUuid jobId)
jobId - Job ID to set.public UUID taskNodeId()
public void taskNodeId(UUID taskNodeId)
taskNodeId - ID of the node where parent task of the job has originated.public String toString()
toString in class GridEventAdapter
|
GridGain 4.3.1e
Enterprise "Big Data" Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
|
GridGain - In-Memory Big Data
|
|
|