|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //针对一个RTU,下发命令的时间间隔 | 
|---|
|  |  |  | public static Long commandSendInterval = 5 * 1000L ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //针对一个RTU,下发快速命令的时间间隔 | 
|---|
|  |  |  | public static Long fastCommandSendInterval = 1000L ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //命令已经发送达最大次数,仍未收到命令结果,需要在缓存继续等待,其等待最大时长 | 
|---|
|  |  |  | public static Long cachWaitResultTimeout = 15 * 1000L ; | 
|---|
|  |  |  | public static Long cacheWaitResultTimeout = 15 * 1000L ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //不在线缓存的命令最大缓存时长 | 
|---|
|  |  |  | public static Long offLineCachTimeout = 60 * 1000L ; | 
|---|
|  |  |  | public static Long offLineCacheTimeout = 60 * 1000L ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //TCP上行数据时刻缓存时长,当达到时长时,TCP上行数据时刻被清空,采用TCP上行数据时刻目的是,阻止上数据同时下发数据,因为RTU处理不过来 | 
|---|
|  |  |  | public static Long lastUpDataTimeLive = 1000L ; | 
|---|
|  |  |  | 
|---|
|  |  |  | //没有上行数据的分钟数,达到这个分钟数,认为RTU断网了,取值范围是2000_100000 | 
|---|
|  |  |  | public static Long disconnectedByNoUpDataMinutes = 3000L ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //工作报太频繁,N次上报处理1次 | 
|---|
|  |  |  | public static Integer workReportDealOneByTimes = 5 ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //触发发送钉钉报警消息的取水口日漏损量的最小值(包括但除0.0外) | 
|---|
|  |  |  | public static Double intakeAlarmLossMinValue = 1.0 ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //有报警发生时,向钉钉发送消息的间隔时长(分钟) | 
|---|
|  |  |  | public static Integer sendDingDingAlarmMsInterval = 60 ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //Mqtt模块是否启动 | 
|---|
|  |  |  | public static Boolean mqttUnitEnable = false ; | 
|---|
|  |  |  | public static Long acceptManureDataMinInterval = 60 * 60 * 1000L ;//默认60分钟 | 
|---|
|  |  |  | public static Long acceptSoilDataMinInterval = 60 * 60 * 1000L ;//默认60分钟 | 
|---|
|  |  |  | public static Long acceptWeatherDataMinInterval = 60 * 60 * 1000L ;//默认60分钟 | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|