Search in sources :

Example 1 with CheckpointSpi

use of org.apache.ignite.spi.checkpoint.CheckpointSpi in project ignite by apache.

the class GridCheckpointManager method start.

/** {@inheritDoc} */
@Override
public void start(boolean activeOnStart) throws IgniteCheckedException {
    for (CheckpointSpi spi : getSpis()) {
        spi.setCheckpointListener(new CheckpointListener() {

            @Override
            public void onCheckpointRemoved(String key) {
                record(EVT_CHECKPOINT_REMOVED, key);
            }
        });
    }
    startSpi();
    ctx.io().addMessageListener(TOPIC_CHECKPOINT, lsnr);
    if (log.isDebugEnabled())
        log.debug(startInfo());
}
Also used : CheckpointListener(org.apache.ignite.spi.checkpoint.CheckpointListener) CheckpointSpi(org.apache.ignite.spi.checkpoint.CheckpointSpi)

Example 2 with CheckpointSpi

use of org.apache.ignite.spi.checkpoint.CheckpointSpi in project ignite by apache.

the class GridCheckpointManager method start.

/**
 * {@inheritDoc}
 */
@Override
public void start() throws IgniteCheckedException {
    for (CheckpointSpi spi : getSpis()) {
        spi.setCheckpointListener(new CheckpointListener() {

            @Override
            public void onCheckpointRemoved(String key) {
                record(EVT_CHECKPOINT_REMOVED, key);
            }
        });
    }
    startSpi();
    ctx.io().addMessageListener(TOPIC_CHECKPOINT, lsnr);
    if (log.isDebugEnabled())
        log.debug(startInfo());
}
Also used : CheckpointListener(org.apache.ignite.spi.checkpoint.CheckpointListener) CheckpointSpi(org.apache.ignite.spi.checkpoint.CheckpointSpi)

Aggregations

CheckpointListener (org.apache.ignite.spi.checkpoint.CheckpointListener)2 CheckpointSpi (org.apache.ignite.spi.checkpoint.CheckpointSpi)2