public class SimpleChainDriver extends Object implements ChainDriver
| Constructor and Description |
|---|
SimpleChainDriver() |
| Modifier and Type | Method and Description |
|---|---|
static SimpleChainDriver |
getInstance() |
protected boolean |
handleConditionDo(ChainContext context,
Condition condition,
String description) |
void |
handleTask(ChainContext context,
Task task)
处理执行任务
|
protected void |
handleTaskDo(ChainContext context,
Task task,
String description) |
boolean |
handleTest(ChainContext context,
Condition condition)
处理条件检测
|
protected boolean |
isChain(String description)
是否为组件
|
protected boolean |
isComponent(String description)
是否为组件
|
void |
onNodeEnd(ChainContext context,
Node node)
节点运行结束时
|
void |
onNodeStart(ChainContext context,
Node node)
节点运行开始时
|
protected void |
tryAsChainTask(ChainContext context,
Task task,
String description)
尝试如果是链则运行
|
protected void |
tryAsComponentTask(ChainContext context,
Task task,
String description)
尝试如果是组件则运行
|
protected boolean |
tryAsScriptCondition(ChainContext context,
Condition condition,
String description) |
protected void |
tryAsScriptTask(ChainContext context,
Task task,
String description)
尝试作为脚本运行
|
public static SimpleChainDriver getInstance()
protected boolean isChain(String description)
protected boolean isComponent(String description)
public void onNodeStart(ChainContext context, Node node)
ChainDriveronNodeStart in interface ChainDriverpublic void onNodeEnd(ChainContext context, Node node)
ChainDriveronNodeEnd in interface ChainDriverpublic boolean handleTest(ChainContext context, Condition condition) throws Throwable
ChainDriverhandleTest in interface ChainDriverThrowableprotected boolean handleConditionDo(ChainContext context, Condition condition, String description) throws Throwable
Throwableprotected boolean tryAsScriptCondition(ChainContext context, Condition condition, String description) throws Throwable
Throwablepublic void handleTask(ChainContext context, Task task) throws Throwable
ChainDriverhandleTask in interface ChainDriverThrowableprotected void handleTaskDo(ChainContext context, Task task, String description) throws Throwable
Throwableprotected void tryAsChainTask(ChainContext context, Task task, String description) throws Throwable
Throwableprotected void tryAsComponentTask(ChainContext context, Task task, String description) throws Throwable
Throwableprotected void tryAsScriptTask(ChainContext context, Task task, String description) throws Throwable
ThrowableCopyright © 2025. All rights reserved.