648540858
2022-03-03 2eb1ca2d94a09c2d3ced69de28de72d2d6d77d8e
src/main/java/com/genersoft/iot/vmp/gb28181/event/EventPublisher.java
@@ -5,6 +5,7 @@
import com.genersoft.iot.vmp.gb28181.bean.GbStream;
import com.genersoft.iot.vmp.gb28181.event.offline.OfflineEvent;
import com.genersoft.iot.vmp.gb28181.event.platformKeepaliveExpire.PlatformKeepaliveExpireEvent;
import com.genersoft.iot.vmp.gb28181.event.platformNotRegister.PlatformCycleRegisterEvent;
import com.genersoft.iot.vmp.gb28181.event.platformNotRegister.PlatformNotRegisterEvent;
import com.genersoft.iot.vmp.gb28181.event.subscribe.catalog.CatalogEvent;
import com.genersoft.iot.vmp.media.zlm.event.ZLMOfflineEvent;
@@ -67,6 +68,16 @@
      platformNotRegisterEvent.setPlatformGbID(platformGbId);
        applicationEventPublisher.publishEvent(platformNotRegisterEvent);
   }
   /**
    * 平台周期注册事件
    * @param paltformGbId
    */
   public void platformRegisterCycleEventPublish(String paltformGbId) {
      PlatformCycleRegisterEvent platformCycleRegisterEvent = new PlatformCycleRegisterEvent(this);
      platformCycleRegisterEvent.setPlatformGbID(paltformGbId);
      applicationEventPublisher.publishEvent(platformCycleRegisterEvent);
   }
   
   /**
    * 设备报警事件
@@ -90,14 +101,14 @@
      applicationEventPublisher.publishEvent(outEvent);
   }
   @Async
   public void catalogEventPublish(String platformId, DeviceChannel deviceChannel, String type) {
      List<DeviceChannel> deviceChannelList = new ArrayList<>();
      deviceChannelList.add(deviceChannel);
      catalogEventPublish(platformId, deviceChannelList, type);
   }
   @Async
   public void catalogEventPublish(String platformId, List<DeviceChannel> deviceChannels, String type) {
      CatalogEvent outEvent = new CatalogEvent(this);
      List<DeviceChannel> channels = new ArrayList<>();
@@ -119,7 +130,7 @@
      applicationEventPublisher.publishEvent(outEvent);
   }
   @Async
   public void catalogEventPublishForStream(String platformId, List<GbStream> gbStreams, String type) {
      CatalogEvent outEvent = new CatalogEvent(this);
      outEvent.setGbStreams(gbStreams);
@@ -128,7 +139,7 @@
      applicationEventPublisher.publishEvent(outEvent);
   }
   @Async
   public void catalogEventPublishForStream(String platformId, GbStream gbStream, String type) {
      List<GbStream> gbStreamList = new ArrayList<>();
      gbStreamList.add(gbStream);