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 471fe89c
authored
Feb 23, 2022
by
yangll
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复同步布隆过滤器的组件方法
1 parent
694ebe00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 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 @
471fe89
...
@@ -24,11 +24,15 @@ public class EventHandleComponent {
...
@@ -24,11 +24,15 @@ public class EventHandleComponent {
return
;
return
;
}
}
String
url
=
PropertiesUtils
.
getProperty
(
"ne-shield-kafkaconsumer-gpsbs.url"
);
String
url
=
PropertiesUtils
.
getProperty
(
"ne-shield-kafkaconsumer-gpsbs
1
.url"
);
Map
<
String
,
Object
>
params
=
Maps
.
newHashMap
();
Map
<
String
,
Object
>
params
=
Maps
.
newHashMap
();
params
.
put
(
"sn"
,
event
.
getSn
());
params
.
put
(
"sn"
,
event
.
getSn
());
String
result
=
HttpUtils
.
get
(
url
,
params
);
String
result
=
HttpUtils
.
get
(
url
,
params
);
log
.
info
(
"同步sn到布隆过滤器接口返回:{}"
,
result
);
log
.
info
(
"同步sn到布隆过滤器接口返回:{},url:{}"
,
result
,
url
);
url
=
PropertiesUtils
.
getProperty
(
"ne-shield-kafkaconsumer-gpsbs2.url"
);
result
=
HttpUtils
.
get
(
url
,
params
);
log
.
info
(
"同步sn到布隆过滤器接口返回:{},url:{}"
,
result
,
url
);
}
}
}
}
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