From c5a05c15df6c01602f259a49ff470fa996579b0b Mon Sep 17 00:00:00 2001
From: lawrencehj <1934378145@qq.com>
Date: 星期五, 26 三月 2021 19:58:46 +0800
Subject: [PATCH] 启动时清除先前注册上级平台的缓存

---
 src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java |   52 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 51 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java b/src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java
index 33ef242..2866611 100644
--- a/src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java
+++ b/src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java
@@ -1,11 +1,13 @@
 package com.genersoft.iot.vmp.storager;
 
+import com.genersoft.iot.vmp.common.RealVideo;
 import com.genersoft.iot.vmp.common.StreamInfo;
 import com.genersoft.iot.vmp.conf.MediaServerConfig;
 import com.genersoft.iot.vmp.gb28181.bean.ParentPlatform;
 import com.genersoft.iot.vmp.gb28181.bean.ParentPlatformCatch;
-import com.genersoft.iot.vmp.gb28181.bean.PlatformRegister;
+import com.genersoft.iot.vmp.gb28181.bean.SendRtpItem;
 
+import java.util.List;
 import java.util.Map;
 
 public interface IRedisCatchStorage {
@@ -63,8 +65,56 @@
 
     ParentPlatformCatch queryPlatformCatchInfo(String platformGbId);
 
+    void delPlatformCatchInfo(String platformGbId);
+
     void updatePlatformKeepalive(ParentPlatform parentPlatform);
+
+    void delPlatformKeepalive(String platformGbId);
 
     void updatePlatformRegister(ParentPlatform parentPlatform);
 
+    void delPlatformRegister(String platformGbId);
+
+    void updatePlatformRegisterInfo(String callId, String platformGbId);
+
+    String queryPlatformRegisterInfo(String callId);
+
+    void delPlatformRegisterInfo(String callId);
+
+    void cleanPlatformRegisterInfos();
+
+    void updateSendRTPSever(SendRtpItem sendRtpItem);
+
+    /**
+     * 鏌ヨRTP鎺ㄩ�佷俊鎭紦瀛�
+     * @param platformGbId
+     * @param channelId
+     * @return sendRtpItem
+     */
+    SendRtpItem querySendRTPServer(String platformGbId, String channelId);
+
+    /**
+     * 鍒犻櫎RTP鎺ㄩ�佷俊鎭紦瀛�
+     * @param platformGbId
+     * @param channelId
+     */
+    void deleteSendRTPServer(String platformGbId, String channelId);
+
+    /**
+     * 鏌ヨ鏌愪釜閫氶亾鏄惁瀛樺湪涓婄骇鐐规挱锛圧TP鎺ㄩ�侊級
+     * @param channelId
+     */
+    boolean isChannelSendingRTP(String channelId);
+
+    /**
+     * 鏇存柊濯掍綋娴佸垪琛�
+     * @param mediaList
+     */
+    void updateMediaList(List<RealVideo> mediaList);
+
+    /**
+     * 鑾峰彇褰撳墠濯掍綋娴佸垪琛�
+     * @return List<RealVideo>
+     */
+    List<Object> getMediaList(int start, int end);
 }

--
Gitblit v1.8.0