@SystemPermission(superUser=true) @Feature(cls=UPGRADE_NODE_LIST, method=EXECUTE) public class NodeUpdateHandler extends BaseProxyHandler
| Constructor and Description |
|---|
NodeUpdateHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(org.springframework.web.socket.WebSocketSession session)
关闭连接
|
protected Object[] |
getParameters(Map<String,Object> attributes)
连接参数
|
protected String |
handleTextMessage(Map<String,Object> attributes,
org.springframework.web.socket.WebSocketSession session,
com.alibaba.fastjson.JSONObject json,
ConsoleCommandOp consoleCommandOp)
消息处理方法
|
protected void |
init(org.springframework.web.socket.WebSocketSession session,
Map<String,Object> attributes)
连接成功 初始化
|
protected void |
showHelloMsg(Map<String,Object> attributes,
org.springframework.web.socket.WebSocketSession session) |
afterConnectionEstablishedImpl, handleTextMessage, handleTextMessageafterConnectionClosed, afterConnectionEstablished, handleTransportError, logOpt, sendMsghandleBinaryMessageprotected void init(org.springframework.web.socket.WebSocketSession session,
Map<String,Object> attributes)
throws Exception
BaseProxyHandlerinit in class BaseProxyHandlersession - 会话attributes - 属性URISyntaxException - 异常IOException - IOExceptionprotected Object[] getParameters(Map<String,Object> attributes)
BaseProxyHandlergetParameters in class BaseProxyHandlerattributes - 属性protected void showHelloMsg(Map<String,Object> attributes, org.springframework.web.socket.WebSocketSession session)
showHelloMsg in class BaseHandlerpublic void destroy(org.springframework.web.socket.WebSocketSession session)
BaseHandlerdestroy in class BaseProxyHandlersession - sessionprotected String handleTextMessage(Map<String,Object> attributes, org.springframework.web.socket.WebSocketSession session, com.alibaba.fastjson.JSONObject json, ConsoleCommandOp consoleCommandOp) throws IOException
BaseProxyHandlerhandleTextMessage in class BaseProxyHandlerattributes - 属性session - 当前回话json - 数据consoleCommandOp - 操作类型IOExceptionCopyright © 2017–2022. All rights reserved.