public class ClusterStateChangeEvent 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.
Constructor and Description |
---|
ClusterStateChangeEvent(ClusterState prevState,
ClusterState state,
@Nullable Collection<? extends BaselineNode> baselineNodes,
ClusterNode node,
String msg) |
Modifier and Type | Method and Description |
---|---|
@Nullable Collection<? extends BaselineNode> |
baselineNodes()
Gets baseline nodes.
|
ClusterState |
previousState() |
ClusterState |
state() |
public ClusterStateChangeEvent(ClusterState prevState, ClusterState state, @Nullable @Nullable Collection<? extends BaselineNode> baselineNodes, ClusterNode node, String msg)
prevState
- Previous cluster state.state
- Current cluster state.baselineNodes
- Collection of baseline nodes. (Optional for in-memory case)node
- Node.msg
- Optional event message.public ClusterState previousState()
public ClusterState state()
@Nullable public @Nullable Collection<? extends BaselineNode> baselineNodes()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023