类 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, 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)voidrequestSplit()voidrestoreState(List<ActionSubtaskState> actionStateList)voidsendSourceEventToEnumerator(org.apache.seatunnel.api.source.SourceEvent sourceEvent)voidsetCollector(SeaTunnelSourceCollector<T> collector)voidsignalNoMoreElement()voidtriggerBarrier(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, CompletableFuture<Void> completableFuture, org.apache.seatunnel.api.common.metrics.MetricsContext metricsContext)
-
-
方法详细资料
-
setCollector
public void setCollector(SeaTunnelSourceCollector<T> collector)
-
init
public void init() throws Exception- 指定者:
init在接口中FlowLifeCycle- 抛出:
Exception
-
open
public void open() throws Exception- 指定者:
open在接口中FlowLifeCycle- 抛出:
Exception
-
close
public void close() throws IOException- 指定者:
close在接口中FlowLifeCycle- 覆盖:
close在类中AbstractFlowLifeCycle- 抛出:
IOException
-
signalNoMoreElement
public void signalNoMoreElement()
-
requestSplit
public void requestSplit()
-
sendSourceEventToEnumerator
public void sendSourceEventToEnumerator(org.apache.seatunnel.api.source.SourceEvent sourceEvent)
-
notifyCheckpointComplete
public void notifyCheckpointComplete(long checkpointId) throws Exception- 指定者:
notifyCheckpointComplete在接口中org.apache.seatunnel.api.state.CheckpointListener- 指定者:
notifyCheckpointComplete在接口中org.apache.seatunnel.engine.core.checkpoint.InternalCheckpointListener- 抛出:
Exception
-
notifyCheckpointAborted
public void notifyCheckpointAborted(long checkpointId) throws Exception- 指定者:
notifyCheckpointAborted在接口中org.apache.seatunnel.api.state.CheckpointListener- 指定者:
notifyCheckpointAborted在接口中org.apache.seatunnel.engine.core.checkpoint.InternalCheckpointListener- 抛出:
Exception
-
notifyCheckpointEnd
public void notifyCheckpointEnd(long checkpointId) throws Exception- 指定者:
notifyCheckpointEnd在接口中org.apache.seatunnel.engine.core.checkpoint.InternalCheckpointListener- 抛出:
Exception
-
restoreState
public void restoreState(List<ActionSubtaskState> actionStateList) throws Exception
- 指定者:
restoreState在接口中Stateful- 抛出:
Exception
-
-