public class GridDeploymentEvent 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 |
|---|
GridDeploymentEvent()
No-arg constructor.
|
GridDeploymentEvent(GridNode node,
String msg,
int type)
Creates deployment event with given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
alias()
Gets deployment alias for this event.
|
void |
alias(String alias)
Sets deployment alias for this event.
|
String |
shortDisplay()
Gets a shortened version of
toString() result. |
String |
toString() |
public String shortDisplay()
toString() result. Suitable for humans to read.shortDisplay in interface GridEventshortDisplay in class GridEventAdaptertoString() result.public String alias()
public void alias(String alias)
alias - Deployment alias.public String toString()
toString in class GridEventAdapterCopyright © 2014. All rights reserved.