@RestController
public class NodeInfoController
extends cn.jiangzeyin.controller.base.AbstractController
Constructor and Description |
---|
NodeInfoController(NodeService nodeService,
WorkspaceService workspaceService) |
Modifier and Type | Method and Description |
---|---|
static com.alibaba.fastjson.JSONObject |
getReceiveCache(String id) |
static Collection<com.alibaba.fastjson.JSONObject> |
listReceiveCache(String removeId)
查询所有缓存
|
String |
receivePush(String token,
String ips,
String loginName,
String loginPwd,
String workspaceId,
int port,
String ping)
接收节点推送的信息
|
String |
update()
添加或者更新节点信息
|
clearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile, resetInfo
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
public NodeInfoController(NodeService nodeService, WorkspaceService workspaceService)
@RequestMapping(value="/api/node/update", method=POST, produces="application/json") public String update()
@RequestMapping(value="/api/node/receive_push", method=GET, produces="application/json") @NotLogin public String receivePush(@ValidatorItem(msg="token empty") String token, @ValidatorItem(msg="ips empty") String ips, @ValidatorItem(msg="loginName empty") String loginName, @ValidatorItem(msg="loginPwd empty") String loginPwd, @ValidatorItem(msg="workspaceId empty") String workspaceId, @ValidatorItem(value=NUMBERS,msg="port error") int port, String ping)
yum install -y wget && wget -O install.sh https://jpom.top/docs/install.sh && bash install.sh Agent jdk --auto-push-to-server http://127.0.0.1:3000/api/node/receive_push?token=462a47b8fba8da1f824370bb9fcdc01aa1a0fe20&workspaceId=DEFAULT
public static Collection<com.alibaba.fastjson.JSONObject> listReceiveCache(String removeId)
public static com.alibaba.fastjson.JSONObject getReceiveCache(String id)
Copyright © 2017–2022. All rights reserved.