@RestController @RequestMapping(value="/node") @SystemPermission(superUser=true) @Feature(cls=UPGRADE_NODE_LIST) public class NodeUpdateController extends BaseServerController
NODE_ID, nodeService
Constructor and Description |
---|
NodeUpdateController(SystemParametersServer systemParametersServer) |
Modifier and Type | Method and Description |
---|---|
String |
checkVersion()
检查版本更新
|
String |
confirmFastInstall(String id,
String ip,
int port) |
String |
downloadRemote()
远程下载
|
String |
fastInstall() |
String |
pullFastInstallResult(String removeId) |
String |
uploadAgent() |
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 NodeUpdateController(SystemParametersServer systemParametersServer)
@GetMapping(value="download_remote.json", produces="application/json") @Feature(method=REMOTE_DOWNLOAD) public String downloadRemote() throws IOException
IOException
RemoteVersion
@GetMapping(value="check_version.json", produces="application/json") public String checkVersion()
RemoteVersion
,
AgentFileModel
@RequestMapping(value="upload_agent", method=POST, produces="application/json") @SystemPermission @Feature(method=UPLOAD) public String uploadAgent() throws IOException
IOException
@GetMapping(value="fast_install.json", produces="application/json") public String fastInstall()
@GetMapping(value="pull_fast_install_result.json", produces="application/json") public String pullFastInstallResult(String removeId)
Copyright © 2017–2022. All rights reserved.