类 SourceSplitEnumeratorTask<SplitT extends org.apache.seatunnel.api.source.SourceSplit>
- java.lang.Object
-
- org.apache.seatunnel.engine.server.task.AbstractTask
-
- org.apache.seatunnel.engine.server.task.CoordinatorTask
-
- org.apache.seatunnel.engine.server.task.SourceSplitEnumeratorTask<SplitT>
-
- 所有已实现的接口:
com.hazelcast.internal.metrics.DynamicMetricsProvider,Serializable,org.apache.seatunnel.api.state.CheckpointListener,org.apache.seatunnel.engine.core.checkpoint.InternalCheckpointListener,Stateful,Task
public class SourceSplitEnumeratorTask<SplitT extends org.apache.seatunnel.api.source.SourceSplit> extends CoordinatorTask
- 另请参阅:
- 序列化表格
-
-
字段概要
-
从类继承的字段 org.apache.seatunnel.engine.server.task.AbstractTask
closeCalled, executionContext, jobID, prepareCloseBarrierId, prepareCloseStatus, progress, restoreComplete, startCalled, taskLocation
-
-
构造器概要
构造器 构造器 说明 SourceSplitEnumeratorTask(long jobID, TaskLocation taskID, org.apache.seatunnel.engine.core.dag.actions.SourceAction<?,SplitT,?> source)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddSplitsBack(List<SplitT> splits, int subtaskId)voidaddTaskMemberMapping(TaskLocation taskID, com.hazelcast.cluster.Address memberAdder)@NonNull ProgressStatecall()voidclose()Set<org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier>getConnectorPluginJars()Set<URL>getJarsUrl()Set<Integer>getRegisteredReaders()org.apache.seatunnel.api.serialization.Serializer<SplitT>getSplitSerializer()com.hazelcast.cluster.AddressgetTaskMemberAddress(long taskID)com.hazelcast.cluster.AddressgetTaskMemberAddressByIndex(int taskIndex)TaskLocationgetTaskMemberLocation(long taskID)TaskLocationgetTaskMemberLocationByIndex(int taskIndex)voidhandleSourceEvent(int subtaskId, org.apache.seatunnel.api.source.SourceEvent sourceEvent)voidinit()voidnotifyCheckpointAborted(long checkpointId)voidnotifyCheckpointComplete(long checkpointId)voidreaderFinished(TaskLocation taskLocation)voidreceivedReader(TaskLocation readerId, com.hazelcast.cluster.Address memberAddr)voidrequestSplit(long taskIndex)voidrestoreState(List<ActionSubtaskState> actionStateList)voidtriggerBarrier(Barrier barrier)-
从类继承的方法 org.apache.seatunnel.engine.server.task.CoordinatorTask
getMetricsContext, provideDynamicMetrics
-
从类继承的方法 org.apache.seatunnel.engine.server.task.AbstractTask
closeCall, getExecutionContext, getTaskID, getTaskLocation, reportTaskStatus, serializeStates, setTaskExecutionContext, startCall, tryClose
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.apache.seatunnel.engine.server.execution.Task
isThreadsShare
-
-
-
-
构造器详细资料
-
SourceSplitEnumeratorTask
public SourceSplitEnumeratorTask(long jobID, TaskLocation taskID, org.apache.seatunnel.engine.core.dag.actions.SourceAction<?,SplitT,?> source)
-
-
方法详细资料
-
init
public void init() throws Exception- 指定者:
init在接口中Task- 覆盖:
init在类中CoordinatorTask- 抛出:
Exception
-
close
public void close() throws IOException- 指定者:
close在接口中Task- 覆盖:
close在类中AbstractTask- 抛出:
IOException
-
call
@NonNull public @NonNull ProgressState call() throws Exception
- 指定者:
call在接口中Task- 指定者:
call在类中AbstractTask- 抛出:
Exception
-
restoreState
public void restoreState(List<ActionSubtaskState> actionStateList) throws Exception
- 抛出:
Exception
-
getSplitSerializer
public org.apache.seatunnel.api.serialization.Serializer<SplitT> getSplitSerializer() throws ExecutionException, InterruptedException
-
addSplitsBack
public void addSplitsBack(List<SplitT> splits, int subtaskId) throws ExecutionException, InterruptedException
-
receivedReader
public void receivedReader(TaskLocation readerId, com.hazelcast.cluster.Address memberAddr) throws InterruptedException, ExecutionException
-
requestSplit
public void requestSplit(long taskIndex) throws ExecutionException, InterruptedException
-
handleSourceEvent
public void handleSourceEvent(int subtaskId, org.apache.seatunnel.api.source.SourceEvent sourceEvent) throws ExecutionException, InterruptedException
-
addTaskMemberMapping
public void addTaskMemberMapping(TaskLocation taskID, com.hazelcast.cluster.Address memberAdder)
-
getTaskMemberAddress
public com.hazelcast.cluster.Address getTaskMemberAddress(long taskID)
-
getTaskMemberLocation
public TaskLocation getTaskMemberLocation(long taskID)
-
getTaskMemberAddressByIndex
public com.hazelcast.cluster.Address getTaskMemberAddressByIndex(int taskIndex)
-
getTaskMemberLocationByIndex
public TaskLocation getTaskMemberLocationByIndex(int taskIndex)
-
readerFinished
public void readerFinished(TaskLocation taskLocation)
-
getJarsUrl
public Set<URL> getJarsUrl()
- 指定者:
getJarsUrl在类中AbstractTask
-
getConnectorPluginJars
public Set<org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier> getConnectorPluginJars()
- 指定者:
getConnectorPluginJars在类中AbstractTask
-
notifyCheckpointComplete
public void notifyCheckpointComplete(long checkpointId) throws Exception- 抛出:
Exception
-
-