Commit 72010a1c authored by 赵啸非's avatar 赵啸非

解决设备下发消息

parent 57e45695
...@@ -10,6 +10,7 @@ import com.mortals.xhx.module.device.model.DeviceEntity; ...@@ -10,6 +10,7 @@ import com.mortals.xhx.module.device.model.DeviceEntity;
import com.mortals.xhx.module.device.service.DeviceService; import com.mortals.xhx.module.device.service.DeviceService;
import com.mortals.xhx.module.platform.service.PlatformService; import com.mortals.xhx.module.platform.service.PlatformService;
import com.mortals.xhx.module.product.service.ProductService; import com.mortals.xhx.module.product.service.ProductService;
import com.mortals.xhx.thread.DeviceDownMsgThread;
import com.mortals.xhx.thread.DeviceUpdateComsumerThread; import com.mortals.xhx.thread.DeviceUpdateComsumerThread;
import com.mortals.xhx.thread.SendThirdPartyThread; import com.mortals.xhx.thread.SendThirdPartyThread;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
...@@ -46,6 +47,8 @@ public class DeviceComsumersRegisterService implements IApplicationStartedServic ...@@ -46,6 +47,8 @@ public class DeviceComsumersRegisterService implements IApplicationStartedServic
private DeviceUpdateComsumerThread deviceUpdateComsumerThread; private DeviceUpdateComsumerThread deviceUpdateComsumerThread;
@Autowired @Autowired
private SendThirdPartyThread sendThirdPartyThread; private SendThirdPartyThread sendThirdPartyThread;
@Autowired
private DeviceDownMsgThread deviceDownMsgThread;
@Override @Override
public void start() { public void start() {
...@@ -53,8 +56,11 @@ public class DeviceComsumersRegisterService implements IApplicationStartedServic ...@@ -53,8 +56,11 @@ public class DeviceComsumersRegisterService implements IApplicationStartedServic
sendTaskThreadPool.init(20); sendTaskThreadPool.init(20);
log.info("设备更新消费线程启动"); log.info("设备更新消费线程启动");
deviceUpdateComsumerThread.start(); deviceUpdateComsumerThread.start();
log.info("设备更新消费线程启动"); log.info("第三方发送线程启动");
sendThirdPartyThread.start(); sendThirdPartyThread.start();
log.info("消息下发发送线程启动");
deviceDownMsgThread.start();
log.info("服务端消息队列初始化服务开始.."); log.info("服务端消息队列初始化服务开始..");
deviceService.find(new DeviceEntity()) deviceService.find(new DeviceEntity())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment