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());
}
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());
}
Aggregations