类 CheckpointCoordinator


  • public class CheckpointCoordinator
    extends Object
    Used to coordinate all checkpoints of a pipeline.

    Generate and coordinate Checkpoint with a checkpoint plan

    • 构造器详细资料

      • CheckpointCoordinator

        public CheckpointCoordinator​(CheckpointManager manager,
                                     org.apache.seatunnel.engine.checkpoint.storage.api.CheckpointStorage checkpointStorage,
                                     org.apache.seatunnel.engine.common.config.server.CheckpointConfig checkpointConfig,
                                     long jobId,
                                     CheckpointPlan plan,
                                     org.apache.seatunnel.engine.core.checkpoint.CheckpointIDCounter checkpointIdCounter,
                                     org.apache.seatunnel.engine.checkpoint.storage.PipelineState pipelineState,
                                     ExecutorService executorService,
                                     com.hazelcast.map.IMap<Object,​Object> runningJobStateIMap,
                                     boolean isStartWithSavePoint)
    • 方法详细资料

      • getPipelineId

        public int getPipelineId()
      • notifyTaskStart

        public com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<?>[] notifyTaskStart()
      • reportCheckpointErrorFromTask

        public void reportCheckpointErrorFromTask​(String errorMsg)
      • readyToClose

        protected void readyToClose​(TaskLocation taskLocation)
      • readyToCloseIdleTask

        protected void readyToCloseIdleTask​(TaskLocation taskLocation)
      • completedCloseIdleTask

        protected void completedCloseIdleTask​(TaskLocation taskLocation)
      • restoreCoordinator

        protected void restoreCoordinator​(boolean alreadyStarted)
      • tryTriggerPendingCheckpoint

        protected void tryTriggerPendingCheckpoint​(org.apache.seatunnel.engine.core.checkpoint.CheckpointType checkpointType)
      • startSavepoint

        public org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<CompletedCheckpoint> startSavepoint()
      • triggerCheckpoint

        public com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<?>[] triggerCheckpoint​(CheckpointBarrier checkpointBarrier)
      • completePendingCheckpoint

        public void completePendingCheckpoint​(CompletedCheckpoint completedCheckpoint)
      • notifyCheckpointCompleted

        public com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<?>[] notifyCheckpointCompleted​(CompletedCheckpoint checkpoint)
      • notifyCheckpointEnd

        public com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<?>[] notifyCheckpointEnd​(CompletedCheckpoint checkpoint)
      • isCompleted

        public boolean isCompleted()
      • isNoErrorCompleted

        public boolean isNoErrorCompleted()
      • isEndOfSavePoint

        public boolean isEndOfSavePoint()
      • waitCheckpointCoordinatorComplete

        public org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<CheckpointCoordinatorState> waitCheckpointCoordinatorComplete()
      • cancelCheckpoint

        public org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<CheckpointCoordinatorState> cancelCheckpoint()
      • scheduleSchemaChangeBeforeCheckpoint

        protected void scheduleSchemaChangeBeforeCheckpoint()
      • scheduleSchemaChangeAfterCheckpoint

        protected void scheduleSchemaChangeAfterCheckpoint()
      • completeSchemaChangeAfterCheckpoint

        protected void completeSchemaChangeAfterCheckpoint​(CompletedCheckpoint checkpoint)
      • getSavepointPendingCheckpoint

        public PendingCheckpoint getSavepointPendingCheckpoint()
        Only for test