Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
e1cfcab1
Commit
e1cfcab1
authored
Dec 12, 2023
by
赵啸非
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加监控节点
parent
a2fdfa4c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
device-manager/src/main/java/com/mortals/xhx/thread/DeviceDownMsgThread.java
...main/java/com/mortals/xhx/thread/DeviceDownMsgThread.java
+1
-1
device-manager/src/main/java/com/mortals/xhx/thread/DeviceUpdateComsumerThread.java
...va/com/mortals/xhx/thread/DeviceUpdateComsumerThread.java
+2
-2
device-manager/src/main/java/com/mortals/xhx/thread/SendThirdPartyThread.java
...ain/java/com/mortals/xhx/thread/SendThirdPartyThread.java
+1
-1
No files found.
device-manager/src/main/java/com/mortals/xhx/thread/DeviceDownMsgThread.java
View file @
e1cfcab1
...
...
@@ -57,7 +57,7 @@ public class DeviceDownMsgThread extends AbstractThread {
@Override
protected
void
process
()
{
log
.
info
(
"DeviceDownMsgThread process"
);
//
log.info("DeviceDownMsgThread process");
DeviceMsgReq
deviceMsgReq
=
cacheService
.
blpop
(
KEY_DEVICE_DOWN_MSG_QUEUE
,
10
,
DeviceMsgReq
.
class
);
if
(!
ObjectUtils
.
isEmpty
(
deviceMsgReq
))
{
log
.
info
(
"下发消息:{}"
,
deviceMsgReq
.
getDeviceCode
());
...
...
device-manager/src/main/java/com/mortals/xhx/thread/DeviceUpdateComsumerThread.java
View file @
e1cfcab1
...
...
@@ -38,12 +38,12 @@ public class DeviceUpdateComsumerThread extends AbstractThread {
@Override
protected
void
process
()
{
log
.
info
(
"DeviceUpdateComsumerThread process"
);
//
log.info("DeviceUpdateComsumerThread process");
List
<
DeviceEntity
>
waitUpdateDeviceList
=
new
ArrayList
<>();
while
(
true
)
{
DeviceEntity
deviceEntity
=
cacheService
.
blpop
(
RedisKey
.
KEY_DEVICE_UPDATE_QUEUE
,
10
,
DeviceEntity
.
class
);
if
(
ObjectUtils
.
isEmpty
(
deviceEntity
))
{
log
.
info
(
"deviceEntity:{}"
,
deviceEntity
==
null
);
//
log.info("deviceEntity:{}", deviceEntity == null);
break
;
}
else
{
waitUpdateDeviceList
.
add
(
deviceEntity
);
...
...
device-manager/src/main/java/com/mortals/xhx/thread/SendThirdPartyThread.java
View file @
e1cfcab1
...
...
@@ -45,7 +45,7 @@ public class SendThirdPartyThread extends AbstractThread {
@Override
protected
void
process
()
{
log
.
info
(
"SendThirdPartyThread process"
);
//
log.info("SendThirdPartyThread process");
DeviceReq
deviceReq
=
cacheService
.
blpop
(
KEY_DEVICE_THIRDPARTY_QUEUE
,
10
,
DeviceReq
.
class
);
if
(!
ObjectUtils
.
isEmpty
(
deviceReq
))
{
String
phpInUrl
=
GlobalSysInfo
.
getParamValue
(
PARAM_SERVER_PHP_IN_HTTP_URL
,
"http://127.0.0.1:11078/zwfw_api"
);
...
...
赵啸非
@zxf
mentioned in commit
166741d4
·
Dec 13, 2023
mentioned in commit
166741d4
mentioned in commit 166741d4fe8b66c5fcdd48617c4d5df4eac6d6ff
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment