@AutoService(value=ITaskProcessor.class) public class SwitchTaskProcessor extends BaseTaskProcessor
| Modifier and Type | Field and Description |
|---|---|
protected String |
rgex |
commitInterval, defaultDataSource, killed, logger, masterConfig, maxRetryTimes, paused, processInstance, processService, taskInstance, taskPluginManager, threadLoggerInfoName, timeout| Constructor and Description |
|---|
SwitchTaskProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
dispatchTask()
dispatch task
|
String |
getType() |
protected boolean |
killTask()
kill task, all tasks need to realize this function
|
protected boolean |
pauseTask()
pause task, common tasks donot need this.
|
boolean |
runTask()
run task
|
String |
setTaskParams(String content,
String rgex) |
boolean |
submitTask()
submit task
|
protected boolean |
taskTimeout()
task timeout process
|
action, dispatch, getDefaultDataSource, getResourceFullNames, getTaskExecutionContext, init, pause, run, setTaskExecutionLogger, stop, submit, taskInstance, timeout, verifyTenantIsNullprotected final String rgex
public boolean submitTask()
BaseTaskProcessorsubmitTask in class BaseTaskProcessorpublic boolean runTask()
BaseTaskProcessorrunTask in class BaseTaskProcessorprotected boolean dispatchTask()
BaseTaskProcessordispatchTask in class BaseTaskProcessorprotected boolean pauseTask()
BaseTaskProcessorpauseTask in class BaseTaskProcessorprotected boolean killTask()
BaseTaskProcessorkillTask in class BaseTaskProcessorprotected boolean taskTimeout()
BaseTaskProcessortaskTimeout in class BaseTaskProcessorpublic String getType()
getType in interface ITaskProcessorgetType in class BaseTaskProcessorCopyright © 2022 The Apache Software Foundation. All rights reserved.