类 SeaTunnelTask
- java.lang.Object
-
- org.apache.seatunnel.engine.server.task.AbstractTask
-
- org.apache.seatunnel.engine.server.task.SeaTunnelTask
-
- 所有已实现的接口:
com.hazelcast.internal.metrics.DynamicMetricsProvider,Serializable,org.apache.seatunnel.api.state.CheckpointListener,org.apache.seatunnel.engine.core.checkpoint.InternalCheckpointListener,Stateful,Task
public abstract class SeaTunnelTask extends AbstractTask
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 protected List<FlowLifeCycle>allCyclesprotected Map<Long,List<ActionSubtaskState>>checkpointStatesprotected SeaTunnelTaskStatecurrStateprotected List<CompletableFuture<Void>>flowFuturesprotected intindexIDprotected List<OneInputFlowLifeCycle<org.apache.seatunnel.api.table.type.Record<?>>>outputsprotected FlowLifeCyclestartFlowLifeCycle-
从类继承的字段 org.apache.seatunnel.engine.server.task.AbstractTask
closeCalled, executionContext, jobID, prepareCloseBarrierId, prepareCloseStatus, progress, restoreComplete, startCalled, taskLocation
-
-
构造器概要
构造器 构造器 说明 SeaTunnelTask(long jobID, TaskLocation taskID, int indexID, Flow executionFlow)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 voidack(Barrier barrier)voidaddState(Barrier barrier, ActionStateKey stateKey, List<byte[]> state)voidclose()protected abstract voidcollect()protected abstract SourceFlowLifeCycle<?,?>createSourceFlowLifeCycle(org.apache.seatunnel.engine.core.dag.actions.SourceAction<?,?,?> sourceAction, SourceConfig config, CompletableFuture<Void> completableFuture, org.apache.seatunnel.api.common.metrics.MetricsContext metricsContext)Set<ActionStateKey>getActionStateKeys()Set<org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier>getConnectorPluginJars()Set<URL>getJarsUrl()SeaTunnelMetricsContextgetMetricsContext()voidinit()voidnotifyAllAction(org.apache.seatunnel.common.utils.function.ConsumerWithException<org.apache.seatunnel.engine.core.checkpoint.InternalCheckpointListener> consumer)voidnotifyCheckpointAborted(long checkpointId)voidnotifyCheckpointComplete(long checkpointId)voidnotifyCheckpointEnd(long checkpointId)voidprovideDynamicMetrics(com.hazelcast.internal.metrics.MetricDescriptor descriptor, com.hazelcast.internal.metrics.MetricsCollectionContext context)voidrestoreState(List<ActionSubtaskState> actionStateList)voidsetTaskGroup(TaskGroup group)protected voidstateProcess()com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<Object>triggerSchemaChangeAfterCheckpoint()com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<Object>triggerSchemaChangeBeforeCheckpoint()-
从类继承的方法 org.apache.seatunnel.engine.server.task.AbstractTask
call, 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, triggerBarrier
-
-
-
-
字段详细资料
-
currState
protected volatile SeaTunnelTaskState currState
-
startFlowLifeCycle
protected FlowLifeCycle startFlowLifeCycle
-
allCycles
protected List<FlowLifeCycle> allCycles
-
outputs
protected List<OneInputFlowLifeCycle<org.apache.seatunnel.api.table.type.Record<?>>> outputs
-
flowFutures
protected List<CompletableFuture<Void>> flowFutures
-
checkpointStates
protected final Map<Long,List<ActionSubtaskState>> checkpointStates
-
indexID
protected int indexID
-
-
构造器详细资料
-
SeaTunnelTask
public SeaTunnelTask(long jobID, TaskLocation taskID, int indexID, Flow executionFlow)
-
-
方法详细资料
-
init
public void init() throws Exception- 指定者:
init在接口中Task- 覆盖:
init在类中AbstractTask- 抛出:
Exception
-
setTaskGroup
public void setTaskGroup(TaskGroup group)
-
createSourceFlowLifeCycle
protected abstract SourceFlowLifeCycle<?,?> createSourceFlowLifeCycle(org.apache.seatunnel.engine.core.dag.actions.SourceAction<?,?,?> sourceAction, SourceConfig config, CompletableFuture<Void> completableFuture, org.apache.seatunnel.api.common.metrics.MetricsContext metricsContext)
-
getJarsUrl
public Set<URL> getJarsUrl()
- 指定者:
getJarsUrl在类中AbstractTask
-
getConnectorPluginJars
public Set<org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier> getConnectorPluginJars()
- 指定者:
getConnectorPluginJars在类中AbstractTask
-
getActionStateKeys
public Set<ActionStateKey> getActionStateKeys()
-
close
public void close() throws IOException- 指定者:
close在接口中Task- 覆盖:
close在类中AbstractTask- 抛出:
IOException
-
ack
public void ack(Barrier barrier)
-
triggerSchemaChangeBeforeCheckpoint
public com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<Object> triggerSchemaChangeBeforeCheckpoint()
-
triggerSchemaChangeAfterCheckpoint
public com.hazelcast.spi.impl.operationservice.impl.InvocationFuture<Object> triggerSchemaChangeAfterCheckpoint()
-
addState
public void addState(Barrier barrier, ActionStateKey stateKey, List<byte[]> state)
-
notifyCheckpointComplete
public void notifyCheckpointComplete(long checkpointId) throws Exception- 抛出:
Exception
-
notifyCheckpointAborted
public void notifyCheckpointAborted(long checkpointId) throws Exception- 抛出:
Exception
-
notifyCheckpointEnd
public void notifyCheckpointEnd(long checkpointId) throws Exception- 抛出:
Exception
-
notifyAllAction
public void notifyAllAction(org.apache.seatunnel.common.utils.function.ConsumerWithException<org.apache.seatunnel.engine.core.checkpoint.InternalCheckpointListener> consumer)
-
restoreState
public void restoreState(List<ActionSubtaskState> actionStateList) throws Exception
- 抛出:
Exception
-
getMetricsContext
public SeaTunnelMetricsContext getMetricsContext()
-
provideDynamicMetrics
public void provideDynamicMetrics(com.hazelcast.internal.metrics.MetricDescriptor descriptor, com.hazelcast.internal.metrics.MetricsCollectionContext context)
-
-