类 SourceFlowLifeCycle<T,SplitT extends org.apache.seatunnel.api.source.SourceSplit>

所有已实现的接口:
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
  • 构造器详细资料

    • 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

      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
    • collect

      public void collect() throws Exception
      抛出:
      Exception
    • signalNoMoreElement

      public void signalNoMoreElement()
    • requestSplit

      public void requestSplit()
    • sendSourceEventToEnumerator

      public void sendSourceEventToEnumerator(org.apache.seatunnel.api.source.SourceEvent sourceEvent)
    • receivedSplits

      public void receivedSplits(List<SplitT> splits)
    • triggerBarrier

      public void triggerBarrier(Barrier barrier) throws Exception
      抛出:
      Exception
    • 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