|
|
package com.monitor.common.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.monitor.common.config.SendsmsConfig;
|
|
|
import com.monitor.common.config.SnsMobileConfig;
|
|
|
import com.monitor.common.service.ZookeeperService;
|
|
|
import com.monitor.common.util.MD5Util;
|
|
|
import com.monitor.influxdb.contants.InfluxDBContants;
|
|
|
import com.monitor.common.service.AlarmMsgService;
|
|
|
import com.monitor.common.service.HttpRestClientService;
|
|
|
import com.monitor.common.util.MD5Util;
|
|
|
import com.monitor.influxdb.contants.InfluxDBContants;
|
|
|
import com.monitor.influxdb.mapper.MonitorAlarmMapper;
|
|
|
import com.monitor.model.domain.QcloudSms;
|
|
|
import com.monitor.model.request.ZkTreeAllReq;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
...
|
...
|
@@ -20,12 +16,10 @@ import org.springframework.scheduling.annotation.Scheduled; |
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLEncoder;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
|
|
|
/**
|
|
|
* Created by yoho on 2016/5/3.
|
...
|
...
|
@@ -43,13 +37,8 @@ public class AlarmMsgServiceImpl implements AlarmMsgService { |
|
|
@Autowired
|
|
|
private MonitorAlarmMapper monitorAlarmMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private ZookeeperService zookeeperService;
|
|
|
|
|
|
private Logger logger = LoggerFactory.getLogger(AlarmMsgServiceImpl.class);
|
|
|
|
|
|
private static final int CONTENT_SUB_LENGTH = 250;
|
|
|
|
|
|
|
|
|
public static final String DEFAULT_SENT_LOCK = "sent_lock";
|
|
|
|
...
|
...
|
@@ -91,9 +80,6 @@ public class AlarmMsgServiceImpl implements AlarmMsgService { |
|
|
return false;
|
|
|
}
|
|
|
}*/
|
|
|
if(true){
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
|
|
|
//无需发送
|
...
|
...
|
|