public class WorkflowExecuteThread extends Object
| 构造器和说明 |
|---|
WorkflowExecuteThread(org.apache.dolphinscheduler.dao.entity.ProcessInstance processInstance,
ProcessService processService,
NettyExecutorManager nettyExecutorManager,
ProcessAlertManager processAlertManager,
MasterConfig masterConfig,
StateWheelExecuteThread stateWheelExecuteThread)
constructor of WorkflowExecuteThread
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
addStateEvent(StateEvent stateEvent) |
boolean |
checkProcessInstance(StateEvent stateEvent)
check process instance by state event
|
void |
checkSerialProcess(org.apache.dolphinscheduler.dao.entity.ProcessDefinition processDefinition) |
boolean |
checkTaskInstanceByCode(long taskCode)
check if task instance exist by task code
|
boolean |
checkTaskInstanceById(int taskInstanceId)
check if task instance exist by id
|
boolean |
checkTaskInstanceByStateEvent(StateEvent stateEvent)
check if task instance exist by state event
|
org.apache.dolphinscheduler.dao.entity.TaskInstance |
cloneRetryTaskInstance(org.apache.dolphinscheduler.dao.entity.TaskInstance taskInstance)
clone a new taskInstance for retry and reset some logic fields
|
org.apache.dolphinscheduler.dao.entity.TaskInstance |
cloneTolerantTaskInstance(org.apache.dolphinscheduler.dao.entity.TaskInstance taskInstance)
clone a new taskInstance for tolerant and reset some logic fields
|
int |
eventSize() |
ProcessDag |
generateFlowDag(List<TaskNode> totalTaskNodeList,
List<String> startNodeNameList,
List<String> recoveryNodeCodeList,
TaskDependType depNodeType)
generate flow dag
|
org.apache.dolphinscheduler.dao.entity.TaskInstance |
getActiveTaskInstanceByTaskCode(long taskCode) |
String |
getKey() |
void |
getPreVarPool(org.apache.dolphinscheduler.dao.entity.TaskInstance taskInstance,
Set<String> preTask) |
org.apache.dolphinscheduler.dao.entity.ProcessInstance |
getProcessInstance() |
org.apache.dolphinscheduler.dao.entity.TaskInstance |
getRetryTaskInstanceByTaskCode(long taskCode) |
org.apache.dolphinscheduler.dao.entity.TaskInstance |
getTaskInstance(int taskInstanceId)
get task instance from memory
|
void |
handleEvents()
handle event
|
boolean |
isStart()
the process start nodes are submitted completely.
|
org.apache.dolphinscheduler.dao.entity.TaskInstance |
newTaskInstance(org.apache.dolphinscheduler.dao.entity.ProcessInstance processInstance,
TaskNode taskNode)
new a taskInstance
|
void |
refreshProcessInstance(int processInstanceId)
update process instance
|
void |
refreshTaskInstance(int taskInstanceId)
update task instance
|
void |
startProcess()
process start handle
|
boolean |
workFlowFinish() |
public WorkflowExecuteThread(org.apache.dolphinscheduler.dao.entity.ProcessInstance processInstance,
ProcessService processService,
NettyExecutorManager nettyExecutorManager,
ProcessAlertManager processAlertManager,
MasterConfig masterConfig,
StateWheelExecuteThread stateWheelExecuteThread)
processInstance - processInstanceprocessService - processServicenettyExecutorManager - nettyExecutorManagerprocessAlertManager - processAlertManagermasterConfig - masterConfigstateWheelExecuteThread - stateWheelExecuteThreadpublic boolean isStart()
public void handleEvents()
public String getKey()
public boolean addStateEvent(StateEvent stateEvent)
public int eventSize()
public org.apache.dolphinscheduler.dao.entity.ProcessInstance getProcessInstance()
public void refreshProcessInstance(int processInstanceId)
public void refreshTaskInstance(int taskInstanceId)
public boolean checkProcessInstance(StateEvent stateEvent)
public boolean checkTaskInstanceByStateEvent(StateEvent stateEvent)
public boolean checkTaskInstanceByCode(long taskCode)
public boolean checkTaskInstanceById(int taskInstanceId)
public org.apache.dolphinscheduler.dao.entity.TaskInstance getTaskInstance(int taskInstanceId)
public org.apache.dolphinscheduler.dao.entity.TaskInstance getActiveTaskInstanceByTaskCode(long taskCode)
public org.apache.dolphinscheduler.dao.entity.TaskInstance getRetryTaskInstanceByTaskCode(long taskCode)
public void startProcess()
public void checkSerialProcess(org.apache.dolphinscheduler.dao.entity.ProcessDefinition processDefinition)
public org.apache.dolphinscheduler.dao.entity.TaskInstance cloneRetryTaskInstance(org.apache.dolphinscheduler.dao.entity.TaskInstance taskInstance)
public org.apache.dolphinscheduler.dao.entity.TaskInstance cloneTolerantTaskInstance(org.apache.dolphinscheduler.dao.entity.TaskInstance taskInstance)
public org.apache.dolphinscheduler.dao.entity.TaskInstance newTaskInstance(org.apache.dolphinscheduler.dao.entity.ProcessInstance processInstance,
TaskNode taskNode)
processInstance - taskNode - public void getPreVarPool(org.apache.dolphinscheduler.dao.entity.TaskInstance taskInstance,
Set<String> preTask)
public boolean workFlowFinish()
public ProcessDag generateFlowDag(List<TaskNode> totalTaskNodeList, List<String> startNodeNameList, List<String> recoveryNodeCodeList, TaskDependType depNodeType) throws Exception
totalTaskNodeList - total task node liststartNodeNameList - start node name listrecoveryNodeCodeList - recovery node code listdepNodeType - depend node typeException - exceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.