Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-devicemonitor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit edbe1c4e
authored
Dec 28, 2021
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
设备监控
1 parent
b750c1f9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
src/main/java/cn/com/glsx/devicemonitor/modules/components/EventHandleComponent.java
src/main/java/cn/com/glsx/devicemonitor/modules/components/EventHandleComponent.java
View file @
edbe1c4
...
@@ -3,6 +3,7 @@ package cn.com.glsx.devicemonitor.modules.components;
...
@@ -3,6 +3,7 @@ package cn.com.glsx.devicemonitor.modules.components;
import
cn.com.glsx.devicemonitor.common.events.DeviceDataEvent
;
import
cn.com.glsx.devicemonitor.common.events.DeviceDataEvent
;
import
com.glsx.plat.common.utils.HttpUtils
;
import
com.glsx.plat.common.utils.HttpUtils
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.glsx.plat.context.utils.PropertiesUtils
;
import
com.glsx.plat.context.utils.PropertiesUtils
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -19,6 +20,10 @@ public class EventHandleComponent {
...
@@ -19,6 +20,10 @@ public class EventHandleComponent {
public
void
event
(
DeviceDataEvent
event
)
{
public
void
event
(
DeviceDataEvent
event
)
{
event
.
printMsg
();
event
.
printMsg
();
if
(
StringUtils
.
isNullOrEmpty
(
event
.
getSn
()))
{
return
;
}
String
url
=
PropertiesUtils
.
getProperty
(
"ne-shield-kafkaconsumer-gpsbs.url"
);
String
url
=
PropertiesUtils
.
getProperty
(
"ne-shield-kafkaconsumer-gpsbs.url"
);
Map
<
String
,
Object
>
params
=
Maps
.
newHashMap
();
Map
<
String
,
Object
>
params
=
Maps
.
newHashMap
();
params
.
put
(
"sn"
,
event
.
getSn
());
params
.
put
(
"sn"
,
event
.
getSn
());
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment