Dashboard > GridGain User Guide > Table Of Contents > GridCoherenceCheckpointSpi
GridCoherenceCheckpointSpi
Added by architect, last edited by morpheus on Jul 30, 2007  (view change)
Labels: 
(None)


Click on Javadoc link to open Javadoc documentation.

Package

org.gridgain.grid.spi.checkpoint.coherence Javadoc

Description

GridCoherenceCheckpointSpi Javadoc uses Coherence 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 Javadoc as well as all SPI interfaces can be configured via spring XML configuration.

Examples

GridCoherenceCheckpointSpi Javadoc can be configured as follows:

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.

Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.10 Build:#528 Nov 29, 2006) - Bug/feature request - Contact Administrators