类 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>org.apache.seatunnel.api.serialization.Serializer<SplitT>com.hazelcast.cluster.AddressgetTaskMemberAddress(long taskID) com.hazelcast.cluster.AddressgetTaskMemberAddressByIndex(int taskIndex) getTaskMemberLocation(long taskID) getTaskMemberLocationByIndex(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.core.checkpoint.InternalCheckpointListener
notifyCheckpointEnd从接口继承的方法 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
- 指定者:
init在接口中Task- 覆盖:
init在类中CoordinatorTask- 抛出:
Exception
-
close
- 指定者:
close在接口中Task- 覆盖:
close在类中AbstractTask- 抛出:
IOException
-
call
- 指定者:
call在接口中Task- 指定者:
call在类中AbstractTask- 抛出:
Exception
-
triggerBarrier
- 抛出:
Exception
-
restoreState
- 抛出:
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
-
handleSourceEvent
public void handleSourceEvent(int subtaskId, org.apache.seatunnel.api.source.SourceEvent sourceEvent) throws ExecutionException, InterruptedException -
addTaskMemberMapping
-
getTaskMemberAddress
public com.hazelcast.cluster.Address getTaskMemberAddress(long taskID) -
getTaskMemberLocation
-
getTaskMemberAddressByIndex
public com.hazelcast.cluster.Address getTaskMemberAddressByIndex(int taskIndex) -
getTaskMemberLocationByIndex
-
readerFinished
-
getRegisteredReaders
-
getJarsUrl
- 指定者:
getJarsUrl在类中AbstractTask
-
getConnectorPluginJars
- 指定者:
getConnectorPluginJars在类中AbstractTask
-
notifyCheckpointComplete
- 抛出:
Exception
-
notifyCheckpointAborted
- 抛出:
Exception
-