@RestController @RequestMapping(value="/manage/") public class ProjectStatusController extends BaseAgentController
projectInfoService| Constructor and Description |
|---|
ProjectStatusController(ConsoleService consoleService) |
| Modifier and Type | Method and Description |
|---|---|
String |
getProjectPort(String ids)
获取项目的运行端口
|
String |
getProjectPort(String id,
String copyIds)
获取项目的运行端口
|
String |
getProjectStatus(String id,
String getCopy)
获取项目的进程id
|
String |
restart(String id,
String copyId) |
String |
start(String id,
String copyId) |
String |
stop(String id,
String copyId) |
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 ProjectStatusController(ConsoleService consoleService)
@RequestMapping(value="getProjectStatus",
method=POST,
produces="application/json")
public String getProjectStatus(@ValidatorItem(value=NOT_BLANK,msg="\u9879\u76eeid \u4e0d\u6b63\u786e")
String id,
String getCopy)
id - 项目id@RequestMapping(value="getProjectPort",
method=POST,
produces="application/json")
public String getProjectPort(String ids)
ids - ids@RequestMapping(value="getProjectCopyPort",
method=POST,
produces="application/json")
public String getProjectPort(String id,
String copyIds)
id - 项目idcopyIds - 副本 ids ["aa","ss"]@RequestMapping(value="restart",
method=POST,
produces="application/json")
public String restart(@ValidatorItem(value=NOT_BLANK,msg="\u9879\u76eeid \u4e0d\u6b63\u786e")
String id,
String copyId)
@RequestMapping(value="stop",
method=POST,
produces="application/json")
public String stop(@ValidatorItem(value=NOT_BLANK,msg="\u9879\u76eeid \u4e0d\u6b63\u786e")
String id,
String copyId)
Copyright © 2017–2022. All rights reserved.