Click on Javadoc link to open Javadoc documentation.
Package
org.gridgain.grid.spi.checkpoint.gigaspaces Javadoc![]()
Description
GridGigaSpacesCheckpointSpi ![]()
Java Spaces-based 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 failed over to a different node after node failure). Note that job state is not saved automatically. It is up to a job itself to save its state periodically to ensure quicker recovery.

For more information on GigaSpaces:
Configuration
The following configuration parameters can be used to configure GridGigaspacesCheckpointSpi ![]()
| Setter Method | Description | Optional | Default |
|---|---|---|---|
| setSpace(GigaSpace) |
Sets GigaSpaces space object. (Since 1.6.2) | Yes. Either URL or space must be set. | |
| setSpaceUrl(String) |
Sets GigaSpaces connection URL. | Yes. Either URL or space must be set. |
Note that GridConfiguration ![]()
Examples
GridGigaSpacesCheckpointSpi ![]()
GridGigaSpacesCheckpointSpi checkpointSpi = new GridGigaSpacesCheckpointSpi(); 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.gigaspaces.GridGigaspacesCheckpointSpi"/> </property> ... </bean>

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