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 ;
|
}
|
}
|