648540858
2021-01-15 c8b6ed5823fbe8e7eeef2e733859b4406b2ba4c5
src/main/java/com/genersoft/iot/vmp/gb28181/event/EventPublisher.java
@@ -1,8 +1,7 @@
package com.genersoft.iot.vmp.gb28181.event;
import com.genersoft.iot.vmp.gb28181.bean.ParentPlatform;
import com.genersoft.iot.vmp.gb28181.event.platformKeepaliveExpire.PlatformKeepaliveExpireEvent;
import com.genersoft.iot.vmp.gb28181.event.platformNotRegister.PlatformNotRegisterEvent;
import com.genersoft.iot.vmp.vmanager.platform.PlatformController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Component;
@@ -36,6 +35,16 @@
    }
   /**
    * 平台心跳到期事件
    * @param platformGbId
    */
   public void platformKeepaliveExpireEventPublish(String platformGbId){
      PlatformKeepaliveExpireEvent platformNotRegisterEvent = new PlatformKeepaliveExpireEvent(this);
      platformNotRegisterEvent.setPlatformGbID(platformGbId);
        applicationEventPublisher.publishEvent(platformNotRegisterEvent);
    }
   /**
    * 平台未注册事件
    * @param platformGbId
    */