Class CheckpointContextImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.checkpoint.CheckpointContextImpl
-
- All Implemented Interfaces:
CheckpointListener.Context
public class CheckpointContextImpl extends Object implements CheckpointListener.Context
Context with information about current checkpoint.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitPendingTasksFinished()Await all async tasks from executor was finished.Executorexecutor()IgniteInternalFuture<?>finishedStateFut()PartitionAllocationMappartitionStatMap()CheckpointProgressprogress()booleanwalFlush()Whether to flush WAL after a Checkpoint begin.voidwalFlush(boolean flush)
-
-
-
Method Detail
-
progress
public CheckpointProgress progress()
- Specified by:
progressin interfaceCheckpointListener.Context- Returns:
- Checkpoint progress callback.
-
walFlush
public void walFlush(boolean flush)
- Specified by:
walFlushin interfaceCheckpointListener.Context- Parameters:
flush- IfTruethen will flush WAL after a Checkpoint begin.
-
walFlush
public boolean walFlush()
Whether to flush WAL after a Checkpoint begin.- Specified by:
walFlushin interfaceCheckpointListener.Context
-
finishedStateFut
public IgniteInternalFuture<?> finishedStateFut()
- Specified by:
finishedStateFutin interfaceCheckpointListener.Context- Returns:
- Checkpoint future which will be completed when checkpoint ends.
-
partitionStatMap
public PartitionAllocationMap partitionStatMap()
- Specified by:
partitionStatMapin interfaceCheckpointListener.Context- Returns:
- Partition allocation statistic map
-
executor
public Executor executor()
- Specified by:
executorin interfaceCheckpointListener.Context- Returns:
- Context executor.
-
awaitPendingTasksFinished
public void awaitPendingTasksFinished() throws IgniteCheckedExceptionAwait all async tasks from executor was finished.- Throws:
IgniteCheckedException- if fail.
-
-