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 e7e2b4ff
authored
Feb 23, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
设备监控-异步同步设备号到布隆过滤器
1 parent
471fe89c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 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 @
e7e2b4f
...
@@ -8,6 +8,7 @@ import com.glsx.plat.context.utils.PropertiesUtils;
...
@@ -8,6 +8,7 @@ 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
;
import
org.springframework.context.event.EventListener
;
import
org.springframework.context.event.EventListener
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -24,6 +25,11 @@ public class EventHandleComponent {
...
@@ -24,6 +25,11 @@ public class EventHandleComponent {
return
;
return
;
}
}
syncBloomFilter
(
event
);
}
@Async
public
void
syncBloomFilter
(
DeviceDataEvent
event
)
{
String
url
=
PropertiesUtils
.
getProperty
(
"ne-shield-kafkaconsumer-gpsbs1.url"
);
String
url
=
PropertiesUtils
.
getProperty
(
"ne-shield-kafkaconsumer-gpsbs1.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