sftp 操作日志.

This commit is contained in:
lijiahang
2024-02-23 18:20:48 +08:00
parent 471f149a04
commit f8e96a6b54
45 changed files with 442 additions and 151 deletions

View File

@@ -37,4 +37,8 @@ public interface ExtraFieldConst extends FieldConst {
String CONNECT_TYPE = "connectType";
String HOST_ID = "hostId";
String HOST_NAME = "hostName";
}

View File

@@ -41,4 +41,10 @@ public interface FieldConst {
String TOKEN = "token";
String PATH = "path";
String ADDRESS = "address";
String MOD = "mod";
}

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.biz.operator.log.core.uitls;
package com.orion.ops.framework.biz.operator.log.core.utils;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializeFilter;

View File

@@ -23,6 +23,19 @@ public class WebSockets {
private WebSockets() {
}
/**
* 获取属性
*
* @param channel channel
* @param attr attr
* @param <E> T
* @return T
*/
@SuppressWarnings("unchecked")
public static <E> E getAttr(WebSocketSession channel, String attr) {
return (E) channel.getAttributes().get(attr);
}
/**
* 发送消息 忽略并发报错
*