public class ScriptJobHandler extends JobHandler
job_param example:
{
"type": "SHELL",
"script":'
#!/bin/sh
echo "hi\'\\" sh!"
'
}
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ScriptJobHandler.ScriptParam |
static class |
ScriptJobHandler.ScriptType |
| 构造器和说明 |
|---|
ScriptJobHandler() |
public ExecuteResult execute(ExecutingTask executingTask, Savepoint savepoint) throws Exception
TaskExecutorexecute 在类中 TaskExecutorexecutingTask - the executing tasksavepoint - the savepointException - if execute failedCopyright © 2023. All rights reserved.