|
GridGain 3.6.0e
Enterprise Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GridEvent
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(GridPredicate , long, GridPredicate[]) - querying
events occurred on the nodes specified, including remote nodes.
Grid.localEvents(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).
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.
| Wiki | |
| Forum |
GridJobEvent,
GridCacheEvent,
GridCachePreloadEvent,
GridSwapSpaceEvent,
GridCheckpointEvent,
GridDeploymentEvent,
GridDiscoveryEvent,
GridTaskEvent,
Grid.waitForEventAsync(GridPredicate, int...),
Grid.waitForEvent(long, Runnable, GridPredicate, int...)

| Method Summary | |
|---|---|
GridUuid |
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. |
UUID |
nodeId()
Gets ID of the 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. |
| Methods inherited from interface org.gridgain.grid.GridMetadataAware |
|---|
addMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, removeMeta, removeMeta, replaceMeta |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
GridUuid id()
GridEvent.localOrder()long localOrder()
GridEvent.id() this local ID can be used for ordering events on this node.
Note that for performance considerations GridGain doesn't order events globally.
GridEvent.id()UUID nodeId()
String message()
null) message for this event.int type()
GridEventType.
NOTE: all types in range from 1 to 1000 are reserved for internal GridGain events and should not be used by user-defined events.
GridEventTypeString name()
GridEventType class.
long timestamp()
GridEvent.localOrder() instead.
String shortDisplay()
toString() result. Suitable for humans to read.
toString() result.
|
GridGain 3.6.0e
Enterprise Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
|
GridGain - Real Time Big Data
|
|
|