public class PartitionsStateValidationEvent 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(org.apache.ignite.lang.IgnitePredicate, long, int...) -
asynchronously querying events occurred on the nodes specified, including remote nodes.
IgniteEvents.localQuery(org.apache.ignite.lang.IgnitePredicate, int...) - querying only
local events stored on this local node.
IgniteEvents.localListen(org.apache.ignite.lang.IgnitePredicate, int...) - listening to
local grid events (events from remote nodes not included).
IgniteEvents.waitForLocal(org.apache.ignite.lang.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 |
|---|
PartitionsStateValidationEvent(ClusterNode node,
String msg,
int type,
Map<String,Set<Integer>> parts,
org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion topVer)
Creates partitions validation event with given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
static PartitionsStateValidationEvent |
failedEvent(ClusterNode node,
Map<String,Set<Integer>> parts,
org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion topVer)
Creates failed partition validation state event.
|
Map<String,Set<Integer>> |
parts()
Gets map of partitions validation result.
|
static PartitionsStateValidationEvent |
succeededEvent(ClusterNode node,
org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion topVer)
Creates succeeded partition validation state event.
|
org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion |
topVer()
Gets topology version.
|
public PartitionsStateValidationEvent(ClusterNode node, String msg, int type, Map<String,Set<Integer>> parts, org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion topVer)
node - Node that raised this event.msg - Optional message.type - Event type.parts - Map of cache or group names to the set of partition ids which failed validation.topVer - Topology version on which the validation happened.public static PartitionsStateValidationEvent failedEvent(ClusterNode node, Map<String,Set<Integer>> parts, org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion topVer)
node - Node that raised this event.parts - Map of cache or group names to the set of partition ids which failed validation.topVer - Topology version on which the validation failed.public static PartitionsStateValidationEvent succeededEvent(ClusterNode node, org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion topVer)
node - Node that raised this event.topVer - Topology version on which the validation succeeded.public Map<String,Set<Integer>> parts()
public org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion topVer()
GridGain In-Memory Computing Platform : ver. 8.9.35 Release Date : July 3 2026