Dashboard > GridGain User Guide > Table Of Contents > GridGigaspacesCheckpointSpi
GridGigaspacesCheckpointSpi
Added by architect, last edited by ghost on Nov 08, 2007  (view change)
Labels: 
(None)


Click on Javadoc link to open Javadoc documentation.

Package

org.gridgain.grid.spi.checkpoint.gigaspaces Javadoc

Description

GridGigaSpacesCheckpointSpi Javadoc uses GigaSpaces 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 Javadoc :

Setter Method Description Optional Default
setSpace(GigaSpace) Javadoc Sets GigaSpaces space object. (Since 1.6.2) Yes. Either URL or space must be set.  
setSpaceUrl(String) Javadoc Sets GigaSpaces connection URL. Yes. Either URL or space must be set.  

Note that GridConfiguration Javadoc as well as all SPI interfaces can be configured via spring XML configuration.

Examples

GridGigaSpacesCheckpointSpi Javadoc can be configured as follows:

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.

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