类 SourceFlowLifeCycle<T,SplitT extends org.apache.seatunnel.api.source.SourceSplit>
java.lang.Object
org.apache.seatunnel.engine.server.task.flow.AbstractFlowLifeCycle
org.apache.seatunnel.engine.server.task.flow.ActionFlowLifeCycle
org.apache.seatunnel.engine.server.task.flow.SourceFlowLifeCycle<T,SplitT>
- 所有已实现的接口:
org.apache.seatunnel.api.state.CheckpointListener,org.apache.seatunnel.engine.core.checkpoint.InternalCheckpointListener,Stateful,FlowLifeCycle
public class SourceFlowLifeCycle<T,SplitT extends org.apache.seatunnel.api.source.SourceSplit>
extends ActionFlowLifeCycle
implements org.apache.seatunnel.engine.core.checkpoint.InternalCheckpointListener
-
字段概要
从类继承的字段 org.apache.seatunnel.engine.server.task.flow.ActionFlowLifeCycle
action从类继承的字段 org.apache.seatunnel.engine.server.task.flow.AbstractFlowLifeCycle
completableFuture, prepareClose, runningTask -
构造器概要
构造器构造器说明SourceFlowLifeCycle(org.apache.seatunnel.engine.core.dag.actions.SourceAction<T, SplitT, ?> sourceAction, int indexID, TaskLocation enumeratorTaskLocation, SeaTunnelTask runningTask, TaskLocation currentTaskLocation, org.apache.seatunnel.engine.common.utils.concurrent.CompletableFuture<Void> completableFuture, org.apache.seatunnel.api.common.metrics.MetricsContext metricsContext) -
方法概要
修饰符和类型方法说明voidclose()voidcollect()voidinit()voidnotifyCheckpointAborted(long checkpointId) voidnotifyCheckpointComplete(long checkpointId) voidnotifyCheckpointEnd(long checkpointId) voidopen()voidreceivedSplits(List<SplitT> splits) voidvoidrestoreState(List<ActionSubtaskState> actionStateList) voidsendSourceEventToEnumerator(org.apache.seatunnel.api.source.SourceEvent sourceEvent) voidsetCollector(SeaTunnelSourceCollector<T> collector) voidvoidtriggerBarrier(Barrier barrier) 从类继承的方法 org.apache.seatunnel.engine.server.task.flow.ActionFlowLifeCycle
getAction从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.seatunnel.engine.server.task.flow.FlowLifeCycle
prepareClose
-
构造器详细资料
-
SourceFlowLifeCycle
public SourceFlowLifeCycle(org.apache.seatunnel.engine.core.dag.actions.SourceAction<T, SplitT, ?> sourceAction, int indexID, TaskLocation enumeratorTaskLocation, SeaTunnelTask runningTask, TaskLocation currentTaskLocation, org.apache.seatunnel.engine.common.utils.concurrent.CompletableFuture<Void> completableFuture, org.apache.seatunnel.api.common.metrics.MetricsContext metricsContext)
-
-
方法详细资料
-
setCollector
-
init
- 指定者:
init在接口中FlowLifeCycle- 抛出:
Exception
-
open
- 指定者:
open在接口中FlowLifeCycle- 抛出:
Exception
-
close
- 指定者:
close在接口中FlowLifeCycle- 覆盖:
close在类中AbstractFlowLifeCycle- 抛出:
IOException
-
collect
- 抛出:
Exception
-
signalNoMoreElement
public void signalNoMoreElement() -
requestSplit
public void requestSplit() -
sendSourceEventToEnumerator
public void sendSourceEventToEnumerator(org.apache.seatunnel.api.source.SourceEvent sourceEvent) -
receivedSplits
-
triggerBarrier
- 抛出:
Exception
-
notifyCheckpointComplete
- 指定者:
notifyCheckpointComplete在接口中org.apache.seatunnel.api.state.CheckpointListener- 指定者:
notifyCheckpointComplete在接口中org.apache.seatunnel.engine.core.checkpoint.InternalCheckpointListener- 抛出:
Exception
-
notifyCheckpointAborted
- 指定者:
notifyCheckpointAborted在接口中org.apache.seatunnel.api.state.CheckpointListener- 指定者:
notifyCheckpointAborted在接口中org.apache.seatunnel.engine.core.checkpoint.InternalCheckpointListener- 抛出:
Exception
-
notifyCheckpointEnd
- 指定者:
notifyCheckpointEnd在接口中org.apache.seatunnel.engine.core.checkpoint.InternalCheckpointListener- 抛出:
Exception
-
restoreState
- 指定者:
restoreState在接口中Stateful- 抛出:
Exception
-