liurunyu
2024-10-23 dc86d90bdd25025ad44fc777c9956cac2e219bec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.dy.rtuMw.server.local.localProtocol;
 
import com.dy.rtuMw.server.forTcp.TcpSessionCache;
 
/**
 * @Author: liurunyu
 * @Date: 2024/10/15 15:56
 * @Description
 */
public class RtuOnLineStateStatisticsDeal  {
 
    /**
     * 统计在线与不在线情况
     */
    public RtuOnLineStateStatisticsVo deal(){
        RtuOnLineStateStatisticsVo vo = new RtuOnLineStateStatisticsVo() ;
        Integer[] onOff = TcpSessionCache.allOnLineStateStatistics() ;
        vo.onLineNum = onOff[0] ;
        vo.offLineNum = onOff[1] ;
        return vo ;
    }
}