public class PythonTask extends AbstractTaskExecutor
FINALIZE_SESSION_MARKER, logger, rgexappIds, cancel, exitStatusCode, needAlert, processId, resultString, taskAlertInfo, varPool| 构造器和说明 |
|---|
PythonTask(TaskExecutionContext taskRequest)
constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
buildPythonCommandFilePath()
build python command file path
|
void |
cancelApplication(boolean cancelApplication) |
protected void |
createPythonCommandFileIfNotExists(String pythonScript,
String pythonScriptFile)
create python command file if not exists
|
AbstractParameters |
getParameters() |
String |
getPreScript() |
void |
handle() |
void |
init() |
logHandle, setSqlParamsMapgetAppIds, getExitStatus, getExitStatusCode, getNeedAlert, getProcessId, getResultString, getTaskAlertInfo, getVarPool, setAppIds, setExitStatusCode, setNeedAlert, setProcessId, setResultString, setTaskAlertInfo, setVarPoolpublic PythonTask(TaskExecutionContext taskRequest)
taskRequest - taskRequestpublic void init()
init 在类中 AbstractTaskpublic String getPreScript()
getPreScript 在类中 AbstractTaskpublic void handle()
throws Exception
handle 在类中 AbstractTaskExceptionpublic void cancelApplication(boolean cancelApplication)
throws Exception
cancelApplication 在类中 AbstractTaskExceptionpublic AbstractParameters getParameters()
getParameters 在类中 AbstractTaskprotected void createPythonCommandFileIfNotExists(String pythonScript, String pythonScriptFile) throws IOException
pythonScript - exec python scriptpythonScriptFile - python script fileIOException - io exceptionprotected String buildPythonCommandFilePath()
Copyright © 2022 The Apache Software Foundation. All rights reserved.