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() |
| 限定符和类型 | 方法和说明 |
|---|---|
ExecuteResult |
execute(ExecutingTask executingTask,
Savepoint savepoint)
Executes task
|
protected void |
onStop()
On stop
|
destroy, init, isStopped, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsplitprotected void onStop()
TaskExecutoronStop 在类中 TaskExecutorpublic ExecuteResult execute(ExecutingTask executingTask, Savepoint savepoint) throws Exception
TaskExecutorexecute 在类中 TaskExecutorexecutingTask - the executing tasksavepoint - the savepointException - if execute failedCopyright © 2023. All rights reserved.