From f7a2d2a92d7e25780c91dd74ecf52e094b62ef4c Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: 星期一, 26 四月 2021 11:37:54 +0800 Subject: [PATCH] 去除所有的system.print, 优化日志显示 --- src/main/java/com/genersoft/iot/vmp/gb28181/event/EventPublisher.java | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/event/EventPublisher.java b/src/main/java/com/genersoft/iot/vmp/gb28181/event/EventPublisher.java index 50f6bc0..58b03dd 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/event/EventPublisher.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/event/EventPublisher.java @@ -1,5 +1,7 @@ package com.genersoft.iot.vmp.gb28181.event; +import com.genersoft.iot.vmp.gb28181.event.platformKeepaliveExpire.PlatformKeepaliveExpireEvent; +import com.genersoft.iot.vmp.gb28181.event.platformNotRegister.PlatformNotRegisterEvent; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationEventPublisher; import org.springframework.stereotype.Component; @@ -33,6 +35,26 @@ outEvent.setFrom(from); applicationEventPublisher.publishEvent(outEvent); } + + /** + * 骞冲彴蹇冭烦鍒版湡浜嬩欢 + * @param platformGbId + */ + public void platformKeepaliveExpireEventPublish(String platformGbId){ + PlatformKeepaliveExpireEvent platformNotRegisterEvent = new PlatformKeepaliveExpireEvent(this); + platformNotRegisterEvent.setPlatformGbID(platformGbId); + applicationEventPublisher.publishEvent(platformNotRegisterEvent); + } + + /** + * 骞冲彴鏈敞鍐屼簨浠� + * @param platformGbId + */ + public void platformNotRegisterEventPublish(String platformGbId){ + PlatformNotRegisterEvent platformNotRegisterEvent = new PlatformNotRegisterEvent(this); + platformNotRegisterEvent.setPlatformGbID(platformGbId); + applicationEventPublisher.publishEvent(platformNotRegisterEvent); + } /** * 璁惧鎶ヨ浜嬩欢 @@ -43,4 +65,5 @@ alarmEvent.setAlarmInfo(deviceAlarm); applicationEventPublisher.publishEvent(alarmEvent); } + } -- Gitblit v1.8.0