类 CheckpointBarrier
- java.lang.Object
-
- org.apache.seatunnel.engine.server.checkpoint.CheckpointBarrier
-
- 所有已实现的接口:
Serializable,Barrier
public class CheckpointBarrier extends Object implements Barrier, Serializable
- 另请参阅:
- 序列化表格
-
-
字段概要
-
从接口继承的字段 org.apache.seatunnel.engine.server.task.record.Barrier
PREPARE_CLOSE_BARRIER_ID
-
-
构造器概要
构造器 构造器 说明 CheckpointBarrier(long id, long timestamp, org.apache.seatunnel.engine.core.checkpoint.CheckpointType checkpointType)CheckpointBarrier(long id, long timestamp, org.apache.seatunnel.engine.core.checkpoint.CheckpointType checkpointType, Set<TaskLocation> prepareCloseTasks, Set<TaskLocation> closedTasks)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Set<TaskLocation>closedTasks()Indicates a list of tasks that have been closed.booleanequals(Object other)inthashCode()booleanisAuto()booleanprepareClose()Barrier indicating that the task should prepare to close.booleanprepareClose(TaskLocation task)Barrier indicating that the task should prepare to close.booleansnapshot()Whether the task needs to perform a status snapshot after the barrier is aligned.StringtoString()
-
-
-
构造器详细资料
-
CheckpointBarrier
public CheckpointBarrier(long id, long timestamp, org.apache.seatunnel.engine.core.checkpoint.CheckpointType checkpointType)
-
CheckpointBarrier
public CheckpointBarrier(long id, long timestamp, org.apache.seatunnel.engine.core.checkpoint.CheckpointType checkpointType, Set<TaskLocation> prepareCloseTasks, Set<TaskLocation> closedTasks)
-
-
方法详细资料
-
snapshot
public boolean snapshot()
从接口复制的说明:BarrierWhether the task needs to perform a status snapshot after the barrier is aligned. For example, DDL barrier does not require a snapshot.
-
prepareClose
public boolean prepareClose()
从接口复制的说明:BarrierBarrier indicating that the task should prepare to close.- 指定者:
prepareClose在接口中Barrier
-
prepareClose
public boolean prepareClose(TaskLocation task)
从接口复制的说明:BarrierBarrier indicating that the task should prepare to close.- 指定者:
prepareClose在接口中Barrier- 参数:
task- task location- 返回:
- If the task is included, the return true
-
closedTasks
public Set<TaskLocation> closedTasks()
从接口复制的说明:BarrierIndicates a list of tasks that have been closed.- 指定者:
closedTasks在接口中Barrier- 返回:
-
isAuto
public boolean isAuto()
-
-