Click on Javadoc link to open Javadoc documentation.
Package
org.gridgain.grid.spi.checkpoint.coherence Javadoc![]()
Description
GridCoherenceCheckpointSpi ![]()
distributed caching technology. All checkpoints are stored in distributed cache and available from all nodes in the grid. Note that every node must have access to the cache. The reason of having it is because a job state can be saved on one node and loaded on another (e.g., if a job gets preempted on a different node after node failure).

For more information on Coherence see http://www.tangosol.com![]()
Configuration
The following configuration parameters can be used to configure GridCoherenceCheckpointSpi Javadoc
:
| Setter Method | Description | Optional | Default |
|---|---|---|---|
| setCacheName(String) Javadoc |
Sets name for Coherence cache used in grid. | Yes | "gridgain.checkpoint.cache" |
Note that GridConfiguration ![]()
Examples
GridCoherenceCheckpointSpi ![]()
GridCoherenceCheckpointSpi checkpointSpi = new GridCoherenceCheckpointSpi(); GridConfigurationAdapter cfg = new GridConfigurationAdapter(); // Override default checkpoint SPI. cfg.setCheckpointSpi(checkpointSpi); // Start grid. GridFactory.start(cfg);
or from Spring configuration file:
<bean id="grid.custom.cfg" class="org.gridgain.grid.GridConfigurationAdapter" singleton="true"> ... <property name="checkpointSpi"> <bean class="org.gridgain.grid.spi.checkpoint.coherence.GridCoherenceCheckpointSpi"/> </property> ... </bean>

For more information about using Spring framework for configuration click here.
