From 3d83775468dc9dd69a52332ba566f7e07e931325 Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: 星期四, 31 十二月 2020 13:15:50 +0800 Subject: [PATCH] 存储部分使用sqlite代替redis --- src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java | 102 ++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 73 insertions(+), 29 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java index 74f86a2..12b8a00 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java @@ -1,9 +1,16 @@ package com.genersoft.iot.vmp.gb28181.bean; + +import java.util.Date; +import java.util.List; import java.util.Map; - public class Device { + + /** + * 鏁版嵁搴撳瓨鍌↖D + */ + private int id; /** * 璁惧Id @@ -37,6 +44,14 @@ private String transport; /** + * 鏁版嵁娴佷紶杈撴ā寮� + * UDP:udp浼犺緭 + * TCP-ACTIVE锛歵cp涓诲姩妯″紡 + * TCP-PASSIVE锛歵cp琚姩妯″紡 + */ + private String streamMode; + + /** * wan鍦板潃 */ private Host host; @@ -46,11 +61,24 @@ */ private int online; - /** - * 閫氶亾鍒楄〃 - */ - private Map<String,DeviceChannel> channelMap; + /** + * 娉ㄥ唽鏃堕棿 + */ + private Long registerTimeMillis; + + /** + * 閫氶亾涓暟 + */ + private int channelCount; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } public String getDeviceId() { return deviceId; @@ -66,30 +94,6 @@ public void setName(String name) { this.name = name; - } - - public String getTransport() { - return transport; - } - - public void setTransport(String transport) { - this.transport = transport; - } - - public Host getHost() { - return host; - } - - public void setHost(Host host) { - this.host = host; - } - - public Map<String, DeviceChannel> getChannelMap() { - return channelMap; - } - - public void setChannelMap(Map<String, DeviceChannel> channelMap) { - this.channelMap = channelMap; } public String getManufacturer() { @@ -116,6 +120,30 @@ this.firmware = firmware; } + public String getTransport() { + return transport; + } + + public void setTransport(String transport) { + this.transport = transport; + } + + public String getStreamMode() { + return streamMode; + } + + public void setStreamMode(String streamMode) { + this.streamMode = streamMode; + } + + public Host getHost() { + return host; + } + + public void setHost(Host host) { + this.host = host; + } + public int getOnline() { return online; } @@ -123,4 +151,20 @@ public void setOnline(int online) { this.online = online; } + + public int getChannelCount() { + return channelCount; + } + + public void setChannelCount(int channelCount) { + this.channelCount = channelCount; + } + + public Long getRegisterTimeMillis() { + return registerTimeMillis; + } + + public void setRegisterTimeMillis(Long registerTimeMillis) { + this.registerTimeMillis = registerTimeMillis; + } } -- Gitblit v1.8.0