类 CheckpointCoordinator
java.lang.Object
org.apache.seatunnel.engine.server.checkpoint.CheckpointCoordinator
Used to coordinate all checkpoints of a pipeline.
Generate and coordinate Checkpoint with 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>protected voidcleanPendingCheckpoint(CheckpointCloseReason closedReason) protected voidcompletedCloseIdleTask(TaskLocation taskLocation) voidcompletePendingCheckpoint(CompletedCheckpoint completedCheckpoint) protected voidintgetPipelineTasks(Set<TaskLocation> pipelineSubtasks) Only for testvoidhandleCoordinatorError(String message, Throwable e, CheckpointCloseReason reason) booleanbooleanbooleancom.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<?>[]protected voidreadyToClose(TaskLocation taskLocation) protected voidreadyToCloseIdleTask(TaskLocation taskLocation) voidreportCheckpointErrorFromTask(String errorMsg) protected voidreportedTask(TaskReportStatusOperation operation) protected voidrestoreCoordinator(boolean alreadyStarted) protected voidprotected voidorg.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<CompletedCheckpoint>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>
-
构造器详细资料
-
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
-
handleCoordinatorError
-
notifyTaskStart
public com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<?>[] notifyTaskStart() -
reportCheckpointErrorFromTask
-
readyToClose
-
readyToCloseIdleTask
-
completedCloseIdleTask
-
restoreCoordinator
protected void restoreCoordinator(boolean alreadyStarted) -
tryTriggerPendingCheckpoint
protected void tryTriggerPendingCheckpoint(org.apache.seatunnel.engine.core.checkpoint.CheckpointType checkpointType) -
getPipelineTasks
-
startSavepoint
public org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<CompletedCheckpoint> startSavepoint() -
triggerCheckpoint
public com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<?>[] triggerCheckpoint(CheckpointBarrier checkpointBarrier) -
cleanPendingCheckpoint
-
acknowledgeTask
-
completePendingCheckpoint
-
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
-
getSavepointPendingCheckpoint
Only for test
-