public class GridCachePreloadingEvent extends GridEventAdapter
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:
GridEvents.remoteQuery(GridPredicate, long, int...) -
asynchronously querying events occurred on the nodes specified, including remote nodes.
GridEvents.localQuery(GridPredicate, int...) -
querying only local events stored on this local node.
GridEvents.localListen(GridPredicate, int...) -
listening to local grid events (events from remote nodes not included).
GridEvents.waitForLocal(GridPredicate, int...).
It is highly recommended to enable only those events that your application logic requires
by using GridConfiguration.getIncludeEventTypes() method 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.
| Constructor and Description |
|---|
GridCachePreloadingEvent(String cacheName,
GridNode node,
String msg,
int type,
int part,
GridNode discoNode,
int discoEvtType,
long discoTs)
Constructs cache event.
|
| Modifier and Type | Method and Description |
|---|---|
String |
cacheName()
Gets cache name.
|
String |
discoveryEventName()
Gets name of discovery event that triggered this preloading event.
|
int |
discoveryEventType()
Gets type of discovery event that triggered this preloading event.
|
GridNode |
discoveryNode()
Gets shadow of the node that triggered this preloading event.
|
long |
discoveryTimestamp()
Gets timestamp of discovery event that caused this preloading event.
|
int |
partition()
Gets partition for the event.
|
String |
shortDisplay()
Gets a shortened version of
toString() result. |
String |
toString() |
public GridCachePreloadingEvent(String cacheName, GridNode node, String msg, int type, int part, GridNode discoNode, int discoEvtType, long discoTs)
cacheName - Cache name.node - Event node.msg - Event message.type - Event type.part - Partition for the event (usually the partition the key belongs to).discoNode - Node that triggered this preloading event.discoEvtType - Discovery event type that triggered this preloading event.discoTs - Timestamp of discovery event that triggered this preloading event.public String cacheName()
public int partition()
public GridNode discoveryNode()
public int discoveryEventType()
GridEventAdapter.type()public String discoveryEventName()
GridEventAdapter.name()public long discoveryTimestamp()
public String shortDisplay()
toString() result. Suitable for humans to read.shortDisplay in interface GridEventshortDisplay in class GridEventAdaptertoString() result.public String toString()
toString in class GridEventAdapterCopyright © 2014. All rights reserved.