类 CheckpointCoordinator
- java.lang.Object
-
- org.apache.seatunnel.engine.server.checkpoint.CheckpointCoordinator
-
public class CheckpointCoordinator extends Object
Used to coordinate all checkpoints of a pipeline.Generate and coordinate
Checkpointwith a checkpoint plan
-
-
构造器概要
构造器 构造器 说明 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)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidacknowledgeTask(TaskAcknowledgeOperation ackOperation)org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<CheckpointCoordinatorState>cancelCheckpoint()protected voidcleanPendingCheckpoint(CheckpointCloseReason closedReason)protected voidcompletedCloseIdleTask(TaskLocation taskLocation)voidcompletePendingCheckpoint(CompletedCheckpoint completedCheckpoint)protected voidcompleteSchemaChangeAfterCheckpoint(CompletedCheckpoint checkpoint)intgetPipelineId()static Map<Long,Integer>getPipelineTasks(Set<TaskLocation> pipelineSubtasks)PendingCheckpointgetSavepointPendingCheckpoint()Only for testvoidhandleCoordinatorError(String message, Throwable e, CheckpointCloseReason reason)booleanisCompleted()booleanisEndOfSavePoint()booleanisNoErrorCompleted()com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<?>[]notifyCheckpointCompleted(CompletedCheckpoint checkpoint)com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<?>[]notifyCheckpointEnd(CompletedCheckpoint checkpoint)com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<?>[]notifyTaskStart()protected voidreadyToClose(TaskLocation taskLocation)protected voidreadyToCloseIdleTask(TaskLocation taskLocation)voidreportCheckpointErrorFromTask(String errorMsg)protected voidreportedTask(TaskReportStatusOperation operation)protected voidrestoreCoordinator(boolean alreadyStarted)protected voidscheduleSchemaChangeAfterCheckpoint()protected voidscheduleSchemaChangeBeforeCheckpoint()org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<CompletedCheckpoint>startSavepoint()com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<?>[]triggerCheckpoint(CheckpointBarrier checkpointBarrier)protected voidtryTriggerPendingCheckpoint(org.apache.seatunnel.engine.core.checkpoint.CheckpointType checkpointType)org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<CheckpointCoordinatorState>waitCheckpointCoordinatorComplete()
-
-
-
构造器详细资料
-
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()
-
reportedTask
protected void reportedTask(TaskReportStatusOperation operation)
-
handleCoordinatorError
public void handleCoordinatorError(String message, Throwable e, CheckpointCloseReason reason)
-
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)
-
getPipelineTasks
public static Map<Long,Integer> getPipelineTasks(Set<TaskLocation> pipelineSubtasks)
-
startSavepoint
public org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<CompletedCheckpoint> startSavepoint()
-
triggerCheckpoint
public com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<?>[] triggerCheckpoint(CheckpointBarrier checkpointBarrier)
-
cleanPendingCheckpoint
protected void cleanPendingCheckpoint(CheckpointCloseReason closedReason)
-
acknowledgeTask
protected void acknowledgeTask(TaskAcknowledgeOperation ackOperation)
-
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
-
-