@RestController @RequestMapping(value="/script_log") @Feature(cls=SCRIPT_LOG) public class ScriptLogController extends BaseServerController
NODE_ID, nodeService| Constructor and Description |
|---|
ScriptLogController(ScriptExecuteLogServer scriptExecuteLogServer,
ScriptServer scriptServer) |
| Modifier and Type | Method and Description |
|---|---|
String |
delLog(String id,
String executeId)
删除日志
|
String |
getNowLog(String id,
String executeId,
int line)
获取的日志
|
String |
scriptList()
get script log list
|
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, resetInfo, tryGetNodecheckPathSafe, pathSafeclearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFilegetApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributespublic ScriptLogController(ScriptExecuteLogServer scriptExecuteLogServer, ScriptServer scriptServer)
@RequestMapping(value="list",
method=POST,
produces="application/json")
@Feature(method=LIST)
public String scriptList()
@RequestMapping(value="del_log",
method=POST,
produces="application/json")
@Feature(method=DEL)
public String delLog(@ValidatorItem
String id,
@ValidatorItem
String executeId)
id - idexecuteId - 执行ID@RequestMapping(value="log",
method=POST,
produces="application/json")
@Feature(method=LIST)
public String getNowLog(@ValidatorItem
String id,
@ValidatorItem
String executeId,
@ValidatorItem(value=POSITIVE_INTEGER,msg="line")
int line)
id - idexecuteId - 执行IDline - 需要获取的行号Copyright © 2017–2022. All rights reserved.