@RestController @RequestMapping(value="/node/manage/") @Feature(cls=PROJECT) @NodeDataPermission(cls=ProjectInfoCacheService.class) public class ProjectManageControl extends BaseServerController
NODE_ID, nodeService
Constructor and Description |
---|
ProjectManageControl(OutGivingServer outGivingServer,
LogReadServer logReadServer,
MonitorService monitorService,
BuildInfoService buildService,
ProjectInfoCacheService projectInfoCacheService) |
Modifier and Type | Method and Description |
---|---|
String |
deleteProject(String id,
String copyId)
删除项目
|
String |
getProjectCopyPort()
获取正在运行的项目的端口和进程id
|
String |
getProjectInfo()
查询所有项目
|
String |
getProjectPort()
获取正在运行的项目的端口和进程id
|
String |
projectCopyList()
展示项目页面
|
String |
restart()
重启项目
|
String |
start()
启动项目
|
String |
stop()
关闭项目项目
|
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, resetInfo, tryGetNode
checkPathSafe, pathSafe
clearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
public ProjectManageControl(OutGivingServer outGivingServer, LogReadServer logReadServer, MonitorService monitorService, BuildInfoService buildService, ProjectInfoCacheService projectInfoCacheService)
@RequestMapping(value="project_copy_list", method=POST, produces="application/json") @Feature(method=LIST) public String projectCopyList()
@RequestMapping(value="getProjectPort", method=POST, produces="application/json") public String getProjectPort()
@RequestMapping(value="getProjectCopyPort", method=POST, produces="application/json") public String getProjectCopyPort()
@PostMapping(value="get_project_info", produces="application/json") @Feature(method=LIST) public String getProjectInfo()
@PostMapping(value="deleteProject", produces="application/json") @Feature(method=DEL) public String deleteProject(@ValidatorItem(value=NOT_BLANK) String id, String copyId)
id
- id@RequestMapping(value="restart", method=POST, produces="application/json") @Feature(method=EXECUTE) public String restart()
nodeId,id,copyId
@RequestMapping(value="start", method=POST, produces="application/json") @Feature(method=EXECUTE) public String start()
nodeId,id,copyId
Copyright © 2017–2022. All rights reserved.