|  |  |  | 
|---|
|  |  |  | if(ServerProperties.cacheUpDownDataMaxCount <= ServerProperties.cacheUpDownDataWarnCount){ | 
|---|
|  |  |  | throw new Exception("cacheUpDownDataMaxCount必须大于cacheUpDownDataWarnCount") ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //没有上行数据的分钟数,达到这个分钟数,认为RTU断网了,取值范围是2_100 | 
|---|
|  |  |  | //没有上行数据的分钟数,达到这个分钟数,认为RTU断网了,取值范围是2-100 | 
|---|
|  |  |  | ServerProperties.disconnectedByNoUpDataMinutes =  0L + conf.getSetAttrPlusInt(doc, "config.base", "disconnectedByNoUpDataMinutes", null, 1, 100, null) ; | 
|---|
|  |  |  | if(ServerProperties.disconnectedByNoUpDataMinutes < 1 || ServerProperties.disconnectedByNoUpDataMinutes > 100){ | 
|---|
|  |  |  | throw new Exception("disconnectedByNoUpDataMinutes取值必须是1~100") ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ServerProperties.disconnectedByNoUpDataMinutes = ServerProperties.disconnectedByNoUpDataMinutes * 60 * 1000 ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //工作报太频繁,N次上报处理1次,取值范围是1-100 | 
|---|
|  |  |  | ServerProperties.workReportDealOneByTimes =  conf.getSetAttrPlusInt(doc, "config.base", "workReportDealOneByTimes", null, 1, 100, null) ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //有报警发生时,向钉钉发送消息的间隔时长(分钟) | 
|---|
|  |  |  | ServerProperties.sendDingDingAlarmMsInterval =  conf.getSetAttrPlusInt(doc, "config.base", "sendDingDingAlarmMsInterval", null, 1, 600, null) ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //设置ID生成器的后缀 | 
|---|
|  |  |  | IDLongGenerator.setSuffix(ServerProperties.dbDataIdSuffix.intValue()); | 
|---|
|  |  |  |  | 
|---|