@RestController @RequestMapping(value="/script") public class ScriptController extends BaseAgentController
projectInfoService| Constructor and Description |
|---|
ScriptController(NodeScriptServer nodeScriptServer,
NodeScriptExecLogServer nodeScriptExecLogServer) |
| Modifier and Type | Method and Description |
|---|---|
String |
del(String id) |
String |
delExecLog(com.alibaba.fastjson.JSONObject jsonObject)
删除定时执行日志
|
String |
delLog(String id,
String executeId)
删除日志
|
String |
exec(String id,
String args)
执行
|
String |
getNowLog(String id,
String executeId,
int line)
获取的日志
|
String |
item(String id) |
String |
list() |
String |
pullExecLog(int pullCount)
同步定时执行日志
|
String |
save(NodeScriptModel nodeScriptModel,
String type) |
String |
upload() |
getNowUserName, getProjectInfoModel, getProjectInfoModel, getUserName, getWorkspaceId, tryGetProjectInfoModel, tryGetProjectInfoModelcheckPathSafe, pathSafeclearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile, resetInfogetApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributespublic ScriptController(NodeScriptServer nodeScriptServer, NodeScriptExecLogServer nodeScriptExecLogServer)
@RequestMapping(value="list.json",
method=POST,
produces="application/json")
public String list()
@RequestMapping(value="item.json",
method=POST,
produces="application/json")
public String item(String id)
@RequestMapping(value="save.json",
method=POST,
produces="application/json")
public String save(NodeScriptModel nodeScriptModel,
String type)
@RequestMapping(value="del.json",
method=POST,
produces="application/json")
public String del(String id)
@RequestMapping(value="upload.json",
method=POST,
produces="application/json")
public String upload()
throws IOException
IOException@RequestMapping(value="log",
method=POST,
produces="application/json")
public String getNowLog(@ValidatorItem
String id,
@ValidatorItem
String executeId,
@ValidatorItem(value=POSITIVE_INTEGER,msg="line")
int line)
id - idexecuteId - 执行IDline - 需要获取的行号@RequestMapping(value="del_log",
method=POST,
produces="application/json")
public String delLog(@ValidatorItem
String id,
@ValidatorItem
String executeId)
id - idexecuteId - 执行ID@RequestMapping(value="exec",
method=POST,
produces="application/json")
public String exec(@ValidatorItem
String id,
String args)
id - ID@RequestMapping(value="pull_exec_log",
method=POST,
produces="application/json")
public String pullExecLog(@ValidatorItem
int pullCount)
pullCount - 领取个数@RequestMapping(value="del_exec_log",
method=POST,
produces="application/json")
public String delExecLog(@RequestBody
com.alibaba.fastjson.JSONObject jsonObject)
jsonObject - 拉起参数Copyright © 2017–2022. All rights reserved.