public class CacheRebalancingEvent extends EventAdapter
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(IgnitePredicate, long, int...)
-
asynchronously querying events occurred on the nodes specified, including remote nodes.
IgniteEvents.localQuery(IgnitePredicate, int...)
-
querying only local events stored on this local node.
IgniteEvents.localListen(IgnitePredicate, int...)
-
listening to local grid events (events from remote nodes not included).
IgniteEvents.waitForLocal(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.
EventType.EVT_CACHE_REBALANCE_PART_LOADED
,
EventType.EVT_CACHE_REBALANCE_PART_UNLOADED
,
EventType.EVT_CACHE_REBALANCE_STARTED
,
EventType.EVT_CACHE_REBALANCE_STOPPED
,
EventType.EVT_CACHE_REBALANCE_PART_DATA_LOST
,
EventType.EVT_CACHE_REBALANCE_PART_SUPPLIED
,
EventType.EVT_CACHE_REBALANCE_PART_MISSED
,
Serialized FormConstructor and Description |
---|
CacheRebalancingEvent(String cacheName,
ClusterNode node,
String msg,
int type,
int part,
ClusterNode 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 rebalancing event.
|
int |
discoveryEventType()
Gets type of discovery event that triggered this rebalancing event.
|
ClusterNode |
discoveryNode()
Gets shadow of the node that triggered this rebalancing event.
|
long |
discoveryTimestamp()
Gets timestamp of discovery event that caused this rebalancing event.
|
int |
partition()
Gets partition for the event.
|
String |
shortDisplay()
Gets a shortened version of
toString() result. |
String |
toString() |
public CacheRebalancingEvent(String cacheName, ClusterNode node, String msg, int type, int part, ClusterNode 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 rebalancing event.discoEvtType
- Discovery event type that triggered this rebalancing event.discoTs
- Timestamp of discovery event that triggered this rebalancing event.public String cacheName()
public int partition()
public ClusterNode discoveryNode()
public int discoveryEventType()
EventAdapter.type()
public String discoveryEventName()
EventAdapter.name()
public long discoveryTimestamp()
public String shortDisplay()
toString()
result. Suitable for humans to read.shortDisplay
in interface Event
shortDisplay
in class EventAdapter
toString()
result.public String toString()
toString
in class EventAdapter
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024