Package org.apache.ignite.events
Class ClusterStateChangeEvent
- java.lang.Object
- 
- org.apache.ignite.events.EventAdapter
- 
- org.apache.ignite.events.ClusterStateChangeEvent
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Event>,- Event
 
 public class ClusterStateChangeEvent extends EventAdapter Cluster state change event.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...).Events and PerformanceNote that by default all events in Ignite are enabled and therefore generated and stored by whatever event storage SPI is configured. Ignite can and often does generate thousands events per seconds under the load and therefore it creates a significant additional load on the system. If these events are not needed by the application this load is unnecessary and leads to significant performance degradation.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 SummaryConstructors Constructor Description ClusterStateChangeEvent(ClusterState prevState, ClusterState state, @Nullable Collection<? extends BaselineNode> baselineNodes, ClusterNode node, String msg)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable Collection<? extends BaselineNode>baselineNodes()Gets baseline nodes.ClusterStatepreviousState()ClusterStatestate()
 
- 
- 
- 
Constructor Detail- 
ClusterStateChangeEventpublic ClusterStateChangeEvent(ClusterState prevState, ClusterState state, @Nullable @Nullable Collection<? extends BaselineNode> baselineNodes, ClusterNode node, String msg) - Parameters:
- prevState- Previous cluster state.
- state- Current cluster state.
- baselineNodes- Collection of baseline nodes. (Optional for in-memory case)
- node- Node.
- msg- Optional event message.
 
 
- 
 - 
Method Detail- 
previousStatepublic ClusterState previousState() - Returns:
- Previous cluster state.
 
 - 
statepublic ClusterState state() - Returns:
- Current cluster state.
 
 - 
baselineNodes@Nullable public @Nullable Collection<? extends BaselineNode> baselineNodes() Gets baseline nodes.- Returns:
- Baseline nodes.
 
 
- 
 
-