From c9a3644b14e1307addeadea23cb5c2f5b2d8b28f Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期三, 12 六月 2024 09:45:02 +0800 Subject: [PATCH] 1、完善通信中间件TkFindP206V1_0_0类和log4j2.yml代码; 2、删除common模块中的HttpUtil类(用不到了); 3、实现P206V1_0_0协议的功能码99H和A0H的上下行数据解析。 --- pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/rmiClient/ResConfigVo.java | 52 +++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 41 insertions(+), 11 deletions(-) diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/rmiClient/ResConfigVo.java b/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/rmiClient/ResConfigVo.java index c3affa5..065e784 100644 --- a/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/rmiClient/ResConfigVo.java +++ b/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/rmiClient/ResConfigVo.java @@ -8,12 +8,18 @@ //妯℃嫙瀹㈡埛鐨処MEI鍙锋埅姝㈠彿 public Long rtuAddrEnd = 0L ; //鏈嶅姟绔疘P - public String serverIp = "" ; + public String tcpServerIp = "" ; //鏈嶅姟绔笂涓嬫枃 - public Integer serverPort = 0 ; + public Integer tcpServerPort = 0 ; + //鍙戦�佹暟鎹棿闅� + public Integer sendInterval = 2 ;//绉� + //姣忎竴杞鍙戦�佹暟鎹紝鍏朵腑鍖呮嫭蹇冭烦鍙戦�佹鏁� + public Integer heartbeatTimes = 3 ; //鍙戦�佹暟鎹鏁� public Integer sendTimes = 0 ; - + //鍙戦�佸畬鏁版嵁鍚庯紝鏄惁鍏抽棴TCP杩炴帴锛�1鏄紝0鍚� + public Integer sendOverThenCloseConnect = 0 ; + /** * 瀵硅薄杞垚json * @return 瀵硅薄json @@ -58,20 +64,36 @@ this.rtuAddrEnd = rtuAddrEnd; } - public String getServerIp() { - return serverIp; + public String getTcpServerIp() { + return tcpServerIp; } - public void setServerIp(String serverIp) { - this.serverIp = serverIp; + public void setTcpServerIp(String tcpServerIp) { + this.tcpServerIp = tcpServerIp; } - public Integer getServerPort() { - return serverPort; + public Integer getTcpServerPort() { + return tcpServerPort; } - public void setServerPort(Integer serverPort) { - this.serverPort = serverPort; + public void setTcpServerPort(Integer tcpServerPort) { + this.tcpServerPort = tcpServerPort; + } + + public Integer getSendInterval() { + return sendInterval; + } + + public void setSendInterval(Integer sendInterval) { + this.sendInterval = sendInterval; + } + + public Integer getHeartbeatTimes() { + return heartbeatTimes; + } + + public void setHeartbeatTimes(Integer heartbeatTimes) { + this.heartbeatTimes = heartbeatTimes; } public Integer getSendTimes() { @@ -81,4 +103,12 @@ public void setSendTimes(Integer sendTimes) { this.sendTimes = sendTimes; } + + public Integer getSendOverThenCloseConnect() { + return sendOverThenCloseConnect; + } + + public void setSendOverThenCloseConnect(Integer sendOverThenCloseConnect) { + this.sendOverThenCloseConnect = sendOverThenCloseConnect; + } } -- Gitblit v1.8.0