Package org.apache.ignite.events
Class CheckpointEvent
- java.lang.Object
- 
- org.apache.ignite.events.EventAdapter
- 
- org.apache.ignite.events.CheckpointEvent
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Event>,- Event
 
 public class CheckpointEvent extends EventAdapter Grid checkpoint 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(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...).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 CheckpointEvent()No-arg constructor.CheckpointEvent(ClusterNode node, String msg, int type, String cpKey)Creates new checkpoint event with given parameters.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringkey()Gets checkpoint key associated with this event.voidkey(String cpKey)Sets checkpoint key.StringshortDisplay()Gets a shortened version oftoString()result.StringtoString()
 
- 
- 
- 
Constructor Detail- 
CheckpointEventpublic CheckpointEvent() No-arg constructor.
 - 
CheckpointEventpublic CheckpointEvent(ClusterNode node, String msg, int type, String cpKey) Creates new checkpoint event with given parameters.- Parameters:
- node- Local node.
- msg- Optional event message.
- type- Event type.
- cpKey- Checkpoint key associated with this event.
 
 
- 
 - 
Method Detail- 
shortDisplaypublic String shortDisplay() Gets a shortened version oftoString()result. Suitable for humans to read.- Specified by:
- shortDisplayin interface- Event
- Overrides:
- shortDisplayin class- EventAdapter
- Returns:
- Shortened version of toString()result.
 
 - 
keypublic String key() Gets checkpoint key associated with this event.- Returns:
- Checkpoint key associated with this event.
 
 - 
keypublic void key(String cpKey) Sets checkpoint key.- Parameters:
- cpKey- Checkpoint key to set.
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- EventAdapter
 
 
- 
 
-