Commit edbe1c4e by levphon

设备监控

1 parent b750c1f9
......@@ -3,6 +3,7 @@ package cn.com.glsx.devicemonitor.modules.components;
import cn.com.glsx.devicemonitor.common.events.DeviceDataEvent;
import com.glsx.plat.common.utils.HttpUtils;
import com.glsx.plat.common.utils.StringUtils;
import com.glsx.plat.context.utils.PropertiesUtils;
import com.google.common.collect.Maps;
import lombok.extern.slf4j.Slf4j;
......@@ -19,6 +20,10 @@ public class EventHandleComponent {
public void event(DeviceDataEvent event) {
event.printMsg();
if (StringUtils.isNullOrEmpty(event.getSn())) {
return;
}
String url = PropertiesUtils.getProperty("ne-shield-kafkaconsumer-gpsbs.url");
Map<String, Object> params = Maps.newHashMap();
params.put("sn", event.getSn());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!