From 1947edb69af115eed2cbb4b2b9f60075fce18cbb Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: Fri, 16 Oct 2020 11:24:36 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E5=85=A5lombok=E6=A1=86=E6=9E=B6=20?=
=?UTF-8?q?=E4=BC=98=E5=8C=96redis=E5=AD=98=E5=82=A8=E7=BB=93=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 7 +-
.../genersoft/iot/vmp/common/PageResult.java | 30 +-
.../genersoft/iot/vmp/common/StreamInfo.java | 73 +--
.../iot/vmp/conf/MediaServerConfig.java | 523 +-----------------
.../com/genersoft/iot/vmp/conf/SipConfig.java | 49 +-
.../iot/vmp/conf/VManagerConfig.java | 11 +-
.../iot/vmp/gb28181/bean/Device.java | 85 +--
.../iot/vmp/gb28181/bean/DeviceAlarm.java | 66 +--
.../iot/vmp/gb28181/bean/DeviceChannel.java | 230 +-------
.../genersoft/iot/vmp/gb28181/bean/Host.java | 23 +-
.../iot/vmp/gb28181/bean/RecordInfo.java | 34 +-
.../iot/vmp/gb28181/bean/RecordItem.java | 77 +--
.../request/impl/MessageRequestProcessor.java | 2 +-
.../redis/VideoManagerRedisStoragerImpl.java | 48 +-
.../iot/vmp/utils/redis/RedisUtil.java | 70 ++-
.../vmp/vmanager/device/entity/Device.java | 178 +-----
.../vmanager/device/entity/DeviceChannel.java | 193 +------
17 files changed, 136 insertions(+), 1563 deletions(-)
diff --git a/pom.xml b/pom.xml
index 31adf4fe..f619cefc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -156,9 +156,14 @@
okhttp
4.9.0
+
+ org.projectlombok
+ lombok
+ 1.18.12
+
-
+
diff --git a/src/main/java/com/genersoft/iot/vmp/common/PageResult.java b/src/main/java/com/genersoft/iot/vmp/common/PageResult.java
index 9a420868..d5b4c772 100644
--- a/src/main/java/com/genersoft/iot/vmp/common/PageResult.java
+++ b/src/main/java/com/genersoft/iot/vmp/common/PageResult.java
@@ -1,7 +1,10 @@
package com.genersoft.iot.vmp.common;
+import lombok.Data;
+
import java.util.List;
+@Data
public class PageResult {
private int page;
@@ -14,31 +17,4 @@ public class PageResult {
return data;
}
- public void setData(List data) {
- this.data = data;
- }
-
- public int getPage() {
- return page;
- }
-
- public void setPage(int page) {
- this.page = page;
- }
-
- public int getCount() {
- return count;
- }
-
- public void setCount(int count) {
- this.count = count;
- }
-
- public int getTotal() {
- return total;
- }
-
- public void setTotal(int total) {
- this.total = total;
- }
}
diff --git a/src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java b/src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java
index 270f72aa..fcf5cd20 100644
--- a/src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java
+++ b/src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java
@@ -1,7 +1,9 @@
package com.genersoft.iot.vmp.common;
import com.alibaba.fastjson.JSONArray;
+import lombok.Data;
+@Data
public class StreamInfo {
private String ssrc;
@@ -14,75 +16,4 @@ public class StreamInfo {
private String rtsp;
private JSONArray tracks;
- public String getSsrc() {
- return ssrc;
- }
-
- public void setSsrc(String ssrc) {
- this.ssrc = ssrc;
- }
-
- public String getFlv() {
- return flv;
- }
-
- public void setFlv(String flv) {
- this.flv = flv;
- }
-
- public String getWs_flv() {
- return ws_flv;
- }
-
- public void setWs_flv(String ws_flv) {
- this.ws_flv = ws_flv;
- }
-
- public String getRtmp() {
- return rtmp;
- }
-
- public void setRtmp(String rtmp) {
- this.rtmp = rtmp;
- }
-
- public String getHls() {
- return hls;
- }
-
- public void setHls(String hls) {
- this.hls = hls;
- }
-
- public String getRtsp() {
- return rtsp;
- }
-
- public void setRtsp(String rtsp) {
- this.rtsp = rtsp;
- }
-
- public String getDeviceID() {
- return deviceID;
- }
-
- public void setDeviceID(String deviceID) {
- this.deviceID = deviceID;
- }
-
- public String getCahnnelId() {
- return cahnnelId;
- }
-
- public void setCahnnelId(String cahnnelId) {
- this.cahnnelId = cahnnelId;
- }
-
- public JSONArray getTracks() {
- return tracks;
- }
-
- public void setTracks(JSONArray tracks) {
- this.tracks = tracks;
- }
}
diff --git a/src/main/java/com/genersoft/iot/vmp/conf/MediaServerConfig.java b/src/main/java/com/genersoft/iot/vmp/conf/MediaServerConfig.java
index 738dd3a0..807cd846 100644
--- a/src/main/java/com/genersoft/iot/vmp/conf/MediaServerConfig.java
+++ b/src/main/java/com/genersoft/iot/vmp/conf/MediaServerConfig.java
@@ -1,7 +1,9 @@
package com.genersoft.iot.vmp.conf;
import com.alibaba.fastjson.annotation.JSONField;
+import lombok.Data;
+@Data
public class MediaServerConfig {
@JSONField(name = "api.apiDebug")
@@ -198,525 +200,4 @@ public class MediaServerConfig {
@JSONField(name = "shell.shell")
private String shellPhell;
-
-
- public String getApiDebug() {
- return apiDebug;
- }
-
- public void setApiDebug(String apiDebug) {
- this.apiDebug = apiDebug;
- }
-
- public String getApiSecret() {
- return apiSecret;
- }
-
- public void setApiSecret(String apiSecret) {
- this.apiSecret = apiSecret;
- }
-
- public String getFfmpegBin() {
- return ffmpegBin;
- }
-
- public void setFfmpegBin(String ffmpegBin) {
- this.ffmpegBin = ffmpegBin;
- }
-
- public String getFfmpegCmd() {
- return ffmpegCmd;
- }
-
- public void setFfmpegCmd(String ffmpegCmd) {
- this.ffmpegCmd = ffmpegCmd;
- }
-
- public String getFfmpegLog() {
- return ffmpegLog;
- }
-
- public void setFfmpegLog(String ffmpegLog) {
- this.ffmpegLog = ffmpegLog;
- }
-
- public String getGeneralEnableVhost() {
- return generalEnableVhost;
- }
-
- public void setGeneralEnableVhost(String generalEnableVhost) {
- this.generalEnableVhost = generalEnableVhost;
- }
-
- public String getGeneralFlowThreshold() {
- return generalFlowThreshold;
- }
-
- public void setGeneralFlowThreshold(String generalFlowThreshold) {
- this.generalFlowThreshold = generalFlowThreshold;
- }
-
- public String getGeneralMaxStreamWaitMS() {
- return generalMaxStreamWaitMS;
- }
-
- public void setGeneralMaxStreamWaitMS(String generalMaxStreamWaitMS) {
- this.generalMaxStreamWaitMS = generalMaxStreamWaitMS;
- }
-
- public String getGeneralStreamNoneReaderDelayMS() {
- return generalStreamNoneReaderDelayMS;
- }
-
- public void setGeneralStreamNoneReaderDelayMS(String generalStreamNoneReaderDelayMS) {
- this.generalStreamNoneReaderDelayMS = generalStreamNoneReaderDelayMS;
- }
-
- public String getHlsFileBufSize() {
- return hlsFileBufSize;
- }
-
- public void setHlsFileBufSize(String hlsFileBufSize) {
- this.hlsFileBufSize = hlsFileBufSize;
- }
-
- public String getHlsFilePath() {
- return hlsFilePath;
- }
-
- public void setHlsFilePath(String hlsFilePath) {
- this.hlsFilePath = hlsFilePath;
- }
-
- public String getHlsSegDur() {
- return hlsSegDur;
- }
-
- public void setHlsSegDur(String hlsSegDur) {
- this.hlsSegDur = hlsSegDur;
- }
-
- public String getHlsSegNum() {
- return hlsSegNum;
- }
-
- public void setHlsSegNum(String hlsSegNum) {
- this.hlsSegNum = hlsSegNum;
- }
-
- public String getHookAccessFileExceptHLS() {
- return hookAccessFileExceptHLS;
- }
-
- public void setHookAccessFileExceptHLS(String hookAccessFileExceptHLS) {
- this.hookAccessFileExceptHLS = hookAccessFileExceptHLS;
- }
-
- public String getHookAdminParams() {
- return hookAdminParams;
- }
-
- public void setHookAdminParams(String hookAdminParams) {
- this.hookAdminParams = hookAdminParams;
- }
-
- public String getHookEnable() {
- return hookEnable;
- }
-
- public void setHookEnable(String hookEnable) {
- this.hookEnable = hookEnable;
- }
-
- public String getHookOnFlowReport() {
- return hookOnFlowReport;
- }
-
- public void setHookOnFlowReport(String hookOnFlowReport) {
- this.hookOnFlowReport = hookOnFlowReport;
- }
-
- public String getHookOnHttpAccess() {
- return hookOnHttpAccess;
- }
-
- public void setHookOnHttpAccess(String hookOnHttpAccess) {
- this.hookOnHttpAccess = hookOnHttpAccess;
- }
-
- public String getHookOnPlay() {
- return hookOnPlay;
- }
-
- public void setHookOnPlay(String hookOnPlay) {
- this.hookOnPlay = hookOnPlay;
- }
-
- public String getHookOnPublish() {
- return hookOnPublish;
- }
-
- public void setHookOnPublish(String hookOnPublish) {
- this.hookOnPublish = hookOnPublish;
- }
-
- public String getHookOnRecordMp4() {
- return hookOnRecordMp4;
- }
-
- public void setHookOnRecordMp4(String hookOnRecordMp4) {
- this.hookOnRecordMp4 = hookOnRecordMp4;
- }
-
- public String getHookOnRtspAuth() {
- return hookOnRtspAuth;
- }
-
- public void setHookOnRtspAuth(String hookOnRtspAuth) {
- this.hookOnRtspAuth = hookOnRtspAuth;
- }
-
- public String getHookOnRtspRealm() {
- return hookOnRtspRealm;
- }
-
- public void setHookOnRtspRealm(String hookOnRtspRealm) {
- this.hookOnRtspRealm = hookOnRtspRealm;
- }
-
- public String getHookOnShellLogin() {
- return hookOnShellLogin;
- }
-
- public void setHookOnShellLogin(String hookOnShellLogin) {
- this.hookOnShellLogin = hookOnShellLogin;
- }
-
- public String getHookOnStreamChanged() {
- return hookOnStreamChanged;
- }
-
- public void setHookOnStreamChanged(String hookOnStreamChanged) {
- this.hookOnStreamChanged = hookOnStreamChanged;
- }
-
- public String getHookOnStreamNoneReader() {
- return hookOnStreamNoneReader;
- }
-
- public void setHookOnStreamNoneReader(String hookOnStreamNoneReader) {
- this.hookOnStreamNoneReader = hookOnStreamNoneReader;
- }
-
- public String getHookOnStreamNotFound() {
- return hookOnStreamNotFound;
- }
-
- public void setHookOnStreamNotFound(String hookOnStreamNotFound) {
- this.hookOnStreamNotFound = hookOnStreamNotFound;
- }
-
- public String getHookTimeoutSec() {
- return hookTimeoutSec;
- }
-
- public void setHookTimeoutSec(String hookTimeoutSec) {
- this.hookTimeoutSec = hookTimeoutSec;
- }
-
- public String getHttpCharSet() {
- return httpCharSet;
- }
-
- public void setHttpCharSet(String httpCharSet) {
- this.httpCharSet = httpCharSet;
- }
-
- public String getHttpKeepAliveSecond() {
- return httpKeepAliveSecond;
- }
-
- public void setHttpKeepAliveSecond(String httpKeepAliveSecond) {
- this.httpKeepAliveSecond = httpKeepAliveSecond;
- }
-
- public String getHttpMaxReqCount() {
- return httpMaxReqCount;
- }
-
- public void setHttpMaxReqCount(String httpMaxReqCount) {
- this.httpMaxReqCount = httpMaxReqCount;
- }
-
- public String getHttpMaxReqSize() {
- return httpMaxReqSize;
- }
-
- public void setHttpMaxReqSize(String httpMaxReqSize) {
- this.httpMaxReqSize = httpMaxReqSize;
- }
-
- public String getHttpNotFound() {
- return httpNotFound;
- }
-
- public void setHttpNotFound(String httpNotFound) {
- this.httpNotFound = httpNotFound;
- }
-
- public String getHttpPort() {
- return httpPort;
- }
-
- public void setHttpPort(String httpPort) {
- this.httpPort = httpPort;
- }
-
- public String getHttpRootPath() {
- return httpRootPath;
- }
-
- public void setHttpRootPath(String httpRootPath) {
- this.httpRootPath = httpRootPath;
- }
-
- public String getHttpSendBufSize() {
- return httpSendBufSize;
- }
-
- public void setHttpSendBufSize(String httpSendBufSize) {
- this.httpSendBufSize = httpSendBufSize;
- }
-
- public String getHttpSSLport() {
- return httpSSLport;
- }
-
- public void setHttpSSLport(String httpSSLport) {
- this.httpSSLport = httpSSLport;
- }
-
- public String getMulticastAddrMax() {
- return multicastAddrMax;
- }
-
- public void setMulticastAddrMax(String multicastAddrMax) {
- this.multicastAddrMax = multicastAddrMax;
- }
-
- public String getMulticastAddrMin() {
- return multicastAddrMin;
- }
-
- public void setMulticastAddrMin(String multicastAddrMin) {
- this.multicastAddrMin = multicastAddrMin;
- }
-
- public String getMulticastUdpTTL() {
- return multicastUdpTTL;
- }
-
- public void setMulticastUdpTTL(String multicastUdpTTL) {
- this.multicastUdpTTL = multicastUdpTTL;
- }
-
- public String getRecordAppName() {
- return recordAppName;
- }
-
- public void setRecordAppName(String recordAppName) {
- this.recordAppName = recordAppName;
- }
-
- public String getRecordFilePath() {
- return recordFilePath;
- }
-
- public void setRecordFilePath(String recordFilePath) {
- this.recordFilePath = recordFilePath;
- }
-
- public String getRecordFileSecond() {
- return recordFileSecond;
- }
-
- public void setRecordFileSecond(String recordFileSecond) {
- this.recordFileSecond = recordFileSecond;
- }
-
- public String getRecordFileSampleMS() {
- return recordFileSampleMS;
- }
-
- public void setRecordFileSampleMS(String recordFileSampleMS) {
- this.recordFileSampleMS = recordFileSampleMS;
- }
-
- public String getRtmpHandshakeSecond() {
- return rtmpHandshakeSecond;
- }
-
- public void setRtmpHandshakeSecond(String rtmpHandshakeSecond) {
- this.rtmpHandshakeSecond = rtmpHandshakeSecond;
- }
-
- public String getRtmpKeepAliveSecond() {
- return rtmpKeepAliveSecond;
- }
-
- public void setRtmpKeepAliveSecond(String rtmpKeepAliveSecond) {
- this.rtmpKeepAliveSecond = rtmpKeepAliveSecond;
- }
-
- public String getRtmpModifyStamp() {
- return rtmpModifyStamp;
- }
-
- public void setRtmpModifyStamp(String rtmpModifyStamp) {
- this.rtmpModifyStamp = rtmpModifyStamp;
- }
-
- public String getRtmpPort() {
- return rtmpPort;
- }
-
- public void setRtmpPort(String rtmpPort) {
- this.rtmpPort = rtmpPort;
- }
-
- public String getRtpAudioMtuSize() {
- return rtpAudioMtuSize;
- }
-
- public void setRtpAudioMtuSize(String rtpAudioMtuSize) {
- this.rtpAudioMtuSize = rtpAudioMtuSize;
- }
-
- public String getRtpClearCount() {
- return rtpClearCount;
- }
-
- public void setRtpClearCount(String rtpClearCount) {
- this.rtpClearCount = rtpClearCount;
- }
-
- public String getRtpCycleMS() {
- return rtpCycleMS;
- }
-
- public void setRtpCycleMS(String rtpCycleMS) {
- this.rtpCycleMS = rtpCycleMS;
- }
-
- public String getRtpMaxRtpCount() {
- return rtpMaxRtpCount;
- }
-
- public void setRtpMaxRtpCount(String rtpMaxRtpCount) {
- this.rtpMaxRtpCount = rtpMaxRtpCount;
- }
-
- public String getRtpVideoMtuSize() {
- return rtpVideoMtuSize;
- }
-
- public void setRtpVideoMtuSize(String rtpVideoMtuSize) {
- this.rtpVideoMtuSize = rtpVideoMtuSize;
- }
-
- public String getRtspAuthBasic() {
- return rtspAuthBasic;
- }
-
- public void setRtspAuthBasic(String rtspAuthBasic) {
- this.rtspAuthBasic = rtspAuthBasic;
- }
-
- public String getRtspHandshakeSecond() {
- return rtspHandshakeSecond;
- }
-
- public void setRtspHandshakeSecond(String rtspHandshakeSecond) {
- this.rtspHandshakeSecond = rtspHandshakeSecond;
- }
-
- public String getRtspKeepAliveSecond() {
- return rtspKeepAliveSecond;
- }
-
- public void setRtspKeepAliveSecond(String rtspKeepAliveSecond) {
- this.rtspKeepAliveSecond = rtspKeepAliveSecond;
- }
-
- public String getRtspPort() {
- return rtspPort;
- }
-
- public void setRtspPort(String rtspPort) {
- this.rtspPort = rtspPort;
- }
-
- public String getRtspSSlport() {
- return rtspSSlport;
- }
-
- public void setRtspSSlport(String rtspSSlport) {
- this.rtspSSlport = rtspSSlport;
- }
-
- public String getShellMaxReqSize() {
- return shellMaxReqSize;
- }
-
- public void setShellMaxReqSize(String shellMaxReqSize) {
- this.shellMaxReqSize = shellMaxReqSize;
- }
-
- public String getShellPhell() {
- return shellPhell;
- }
-
- public void setShellPhell(String shellPhell) {
- this.shellPhell = shellPhell;
- }
-
- public String getLocalIP() {
- return localIP;
- }
-
- public void setLocalIP(String localIP) {
- this.localIP = localIP;
- }
-
- public String getRtpProxyCheckSource() {
- return rtpProxyCheckSource;
- }
-
- public void setRtpProxyCheckSource(String rtpProxyCheckSource) {
- this.rtpProxyCheckSource = rtpProxyCheckSource;
- }
-
- public String getRtpProxyDumpDir() {
- return rtpProxyDumpDir;
- }
-
- public void setRtpProxyDumpDir(String rtpProxyDumpDir) {
- this.rtpProxyDumpDir = rtpProxyDumpDir;
- }
-
- public String getRtpProxyPort() {
- return rtpProxyPort;
- }
-
- public void setRtpProxyPort(String rtpProxyPort) {
- this.rtpProxyPort = rtpProxyPort;
- }
-
- public String getRtpProxyTimeoutSec() {
- return rtpProxyTimeoutSec;
- }
-
- public void setRtpProxyTimeoutSec(String rtpProxyTimeoutSec) {
- this.rtpProxyTimeoutSec = rtpProxyTimeoutSec;
- }
}
diff --git a/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java b/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java
index 2d798396..ba229750 100644
--- a/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java
+++ b/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java
@@ -1,8 +1,10 @@
package com.genersoft.iot.vmp.conf;
+import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
+@Data
@Configuration("sipConfig")
public class SipConfig {
@@ -20,51 +22,4 @@ public class SipConfig {
@Value("${sip.ptz.speed:50}")
Integer speed;
- public String getSipIp() {
- return sipIp;
- }
-
- public void setSipIp(String sipIp) {
- this.sipIp = sipIp;
- }
-
- public Integer getSipPort() {
- return sipPort;
- }
-
- public void setSipPort(Integer sipPort) {
- this.sipPort = sipPort;
- }
-
- public String getSipDomain() {
- return sipDomain;
- }
-
- public void setSipDomain(String sipDomain) {
- this.sipDomain = sipDomain;
- }
-
- public String getSipPassword() {
- return sipPassword;
- }
-
- public void setSipPassword(String sipPassword) {
- this.sipPassword = sipPassword;
- }
-
- public Integer getSpeed() {
- return speed;
- }
-
- public void setSpeed(Integer speed) {
- this.speed = speed;
- }
-
- public String getSipId() {
- return sipId;
- }
-
- public void setSipId(String sipId) {
- this.sipId = sipId;
- }
}
diff --git a/src/main/java/com/genersoft/iot/vmp/conf/VManagerConfig.java b/src/main/java/com/genersoft/iot/vmp/conf/VManagerConfig.java
index be83a88f..b27ea2f0 100644
--- a/src/main/java/com/genersoft/iot/vmp/conf/VManagerConfig.java
+++ b/src/main/java/com/genersoft/iot/vmp/conf/VManagerConfig.java
@@ -1,5 +1,6 @@
package com.genersoft.iot.vmp.conf;
+import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
@@ -8,20 +9,12 @@ import org.springframework.context.annotation.Configuration;
* @author: swwheihei
* @date: 2020年5月6日 下午2:46:00
*/
+@Data
@Configuration("vmConfig")
public class VManagerConfig {
@Value("${spring.application.database:redis}")
private String database;
- public String getDatabase() {
- return database;
- }
- public void setDatabase(String database) {
- this.database = database;
- }
-
-
-
}
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 8a88497a..b87ffac6 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,8 +1,11 @@
package com.genersoft.iot.vmp.gb28181.bean;
-import java.util.Map;
+import lombok.Data;
+import java.util.List;
+import java.util.Map;
+@Data
public class Device {
/**
@@ -53,84 +56,6 @@ public class Device {
private int channelCount;
+ private List channelList;
- public String getDeviceId() {
- return deviceId;
- }
-
- public void setDeviceId(String deviceId) {
- this.deviceId = deviceId;
- }
-
- public String getName() {
- return name;
- }
-
- 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 getChannelMap() {
-// return channelMap;
-// }
-//
-// public void setChannelMap(Map channelMap) {
-// this.channelMap = channelMap;
-// }
-
- public String getManufacturer() {
- return manufacturer;
- }
-
- public void setManufacturer(String manufacturer) {
- this.manufacturer = manufacturer;
- }
-
- public String getModel() {
- return model;
- }
-
- public void setModel(String model) {
- this.model = model;
- }
-
- public String getFirmware() {
- return firmware;
- }
-
- public void setFirmware(String firmware) {
- this.firmware = firmware;
- }
-
- public int getOnline() {
- return online;
- }
-
- public void setOnline(int online) {
- this.online = online;
- }
-
- public int getChannelCount() {
- return channelCount;
- }
-
- public void setChannelCount(int channelCount) {
- this.channelCount = channelCount;
- }
}
diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceAlarm.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceAlarm.java
index 8ba43c26..6512d379 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceAlarm.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceAlarm.java
@@ -1,5 +1,8 @@
package com.genersoft.iot.vmp.gb28181.bean;
+import lombok.Data;
+
+@Data
public class DeviceAlarm {
/**
@@ -43,68 +46,5 @@ public class DeviceAlarm {
*/
private String alarmType;
- public String getDeviceId() {
- return deviceId;
- }
-
- public void setDeviceId(String deviceId) {
- this.deviceId = deviceId;
- }
-
- public String getAlarmPriorit() {
- return alarmPriorit;
- }
-
- public void setAlarmPriorit(String alarmPriorit) {
- this.alarmPriorit = alarmPriorit;
- }
-
- public String getAlarmMethod() {
- return alarmMethod;
- }
-
- public void setAlarmMethod(String alarmMethod) {
- this.alarmMethod = alarmMethod;
- }
-
- public String getAlarmTime() {
- return alarmTime;
- }
-
- public void setAlarmTime(String alarmTime) {
- this.alarmTime = alarmTime;
- }
-
- public String getAlarmDescription() {
- return alarmDescription;
- }
-
- public void setAlarmDescription(String alarmDescription) {
- this.alarmDescription = alarmDescription;
- }
-
- public double getLongitude() {
- return longitude;
- }
-
- public void setLongitude(double longitude) {
- this.longitude = longitude;
- }
-
- public double getLatitude() {
- return latitude;
- }
-
- public void setLatitude(double latitude) {
- this.latitude = latitude;
- }
-
- public String getAlarmType() {
- return alarmType;
- }
-
- public void setAlarmType(String alarmType) {
- this.alarmType = alarmType;
- }
}
diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java
index 13503419..ad1dbabc 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java
@@ -1,5 +1,8 @@
package com.genersoft.iot.vmp.gb28181.bean;
+import lombok.Data;
+
+@Data
public class DeviceChannel {
/**
@@ -153,193 +156,6 @@ public class DeviceChannel {
*/
private boolean play;
- public String getChannelId() {
- return channelId;
- }
-
- public void setChannelId(String channelId) {
- this.channelId = channelId;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public int getStatus() {
- return status;
- }
-
- public void setStatus(int status) {
- this.status = status;
- }
-
- public String getManufacture() {
- return manufacture;
- }
-
- public void setManufacture(String manufacture) {
- this.manufacture = manufacture;
- }
-
- public String getModel() {
- return model;
- }
-
- public void setModel(String model) {
- this.model = model;
- }
-
- public String getOwner() {
- return owner;
- }
-
- public void setOwner(String owner) {
- this.owner = owner;
- }
-
- public String getCivilCode() {
- return civilCode;
- }
-
- public void setCivilCode(String civilCode) {
- this.civilCode = civilCode;
- }
-
- public String getBlock() {
- return block;
- }
-
- public void setBlock(String block) {
- this.block = block;
- }
-
- public String getAddress() {
- return address;
- }
-
- public void setAddress(String address) {
- this.address = address;
- }
-
- public int getParental() {
- return parental;
- }
-
- public void setParental(int parental) {
- this.parental = parental;
- }
-
- public String getParentId() {
- return parentId;
- }
-
- public void setParentId(String parentId) {
- this.parentId = parentId;
- }
-
- public int getSafetyWay() {
- return safetyWay;
- }
-
- public void setSafetyWay(int safetyWay) {
- this.safetyWay = safetyWay;
- }
-
- public int getRegisterWay() {
- return registerWay;
- }
-
- public void setRegisterWay(int registerWay) {
- this.registerWay = registerWay;
- }
-
- public String getCertNum() {
- return certNum;
- }
-
- public void setCertNum(String certNum) {
- this.certNum = certNum;
- }
-
- public int getCertifiable() {
- return certifiable;
- }
-
- public void setCertifiable(int certifiable) {
- this.certifiable = certifiable;
- }
-
- public int getErrCode() {
- return errCode;
- }
-
- public void setErrCode(int errCode) {
- this.errCode = errCode;
- }
-
- public String getEndTime() {
- return endTime;
- }
-
- public void setEndTime(String endTime) {
- this.endTime = endTime;
- }
-
- public String getSecrecy() {
- return secrecy;
- }
-
- public void setSecrecy(String secrecy) {
- this.secrecy = secrecy;
- }
-
- public String getIpAddress() {
- return ipAddress;
- }
-
- public void setIpAddress(String ipAddress) {
- this.ipAddress = ipAddress;
- }
-
- public int getPort() {
- return port;
- }
-
- public void setPort(int port) {
- this.port = port;
- }
-
- public String getPassword() {
- return password;
- }
-
- public void setPassword(String password) {
- this.password = password;
- }
-
- public double getLongitude() {
- return longitude;
- }
-
- public void setLongitude(double longitude) {
- this.longitude = longitude;
- }
-
- public double getLatitude() {
- return latitude;
- }
-
- public void setLatitude(double latitude) {
- this.latitude = latitude;
- }
-
- public int getPTZType() {
- return PTZType;
- }
public void setPTZType(int PTZType) {
this.PTZType = PTZType;
@@ -361,44 +177,4 @@ public class DeviceChannel {
break;
}
}
-
- public String getPTZTypeText() {
- return PTZTypeText;
- }
-
- public String getSsrc() {
- return ssrc;
- }
-
- public void setSsrc(String ssrc) {
- this.ssrc = ssrc;
- }
-
- public int getSubCount() {
- return subCount;
- }
-
- public void setSubCount(int subCount) {
- this.subCount = subCount;
- }
-
- public void setPTZTypeText(String PTZTypeText) {
- this.PTZTypeText = PTZTypeText;
- }
-
- public boolean isHasAudio() {
- return hasAudio;
- }
-
- public void setHasAudio(boolean hasAudio) {
- this.hasAudio = hasAudio;
- }
-
- public boolean isPlay() {
- return play;
- }
-
- public void setPlay(boolean play) {
- this.play = play;
- }
}
diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Host.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Host.java
index 4afb6346..d8499b1a 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Host.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Host.java
@@ -1,30 +1,15 @@
package com.genersoft.iot.vmp.gb28181.bean;
+import lombok.Data;
+
+@Data
public class Host {
private String ip;
private int port;
private String address;
- public String getIp() {
- return ip;
- }
- public void setIp(String ip) {
- this.ip = ip;
- }
- public int getPort() {
- return port;
- }
- public void setPort(int port) {
- this.port = port;
- }
- public String getAddress() {
- return address;
- }
- public void setAddress(String address) {
- this.address = address;
- }
-
+
}
diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/RecordInfo.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/RecordInfo.java
index 8a88c94b..9b2fb058 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/RecordInfo.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/RecordInfo.java
@@ -1,5 +1,7 @@
package com.genersoft.iot.vmp.gb28181.bean;
+import lombok.Data;
+
import java.util.List;
/**
@@ -7,6 +9,7 @@ import java.util.List;
* @author: swwheihei
* @date: 2020年5月8日 下午2:05:56
*/
+@Data
public class RecordInfo {
private String deviceId;
@@ -17,35 +20,4 @@ public class RecordInfo {
private List recordList;
- public String getDeviceId() {
- return deviceId;
- }
-
- public void setDeviceId(String deviceId) {
- this.deviceId = deviceId;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public int getSumNum() {
- return sumNum;
- }
-
- public void setSumNum(int sumNum) {
- this.sumNum = sumNum;
- }
-
- public List getRecordList() {
- return recordList;
- }
-
- public void setRecordList(List recordList) {
- this.recordList = recordList;
- }
}
diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/RecordItem.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/RecordItem.java
index fbcbf96c..7d3eec59 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/RecordItem.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/RecordItem.java
@@ -1,10 +1,14 @@
package com.genersoft.iot.vmp.gb28181.bean;
-/**
+import lombok.Data;
+
+/**
* @Description:设备录像bean
* @author: swwheihei
* @date: 2020年5月8日 下午2:06:54
*/
+
+@Data
public class RecordItem {
private String deviceId;
@@ -25,75 +29,4 @@ public class RecordItem {
private String recorderId;
- public String getDeviceId() {
- return deviceId;
- }
-
- public void setDeviceId(String deviceId) {
- this.deviceId = deviceId;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getFilePath() {
- return filePath;
- }
-
- public void setFilePath(String filePath) {
- this.filePath = filePath;
- }
-
- public String getAddress() {
- return address;
- }
-
- public void setAddress(String address) {
- this.address = address;
- }
-
- public String getStartTime() {
- return startTime;
- }
-
- public void setStartTime(String startTime) {
- this.startTime = startTime;
- }
-
- public int getSecrecy() {
- return secrecy;
- }
-
- public void setSecrecy(int secrecy) {
- this.secrecy = secrecy;
- }
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- public String getRecorderId() {
- return recorderId;
- }
-
- public void setRecordId(String recorderId) {
- this.recorderId = recorderId;
- }
-
- public String getEndTime() {
- return endTime;
- }
-
- public void setEndTime(String endTime) {
- this.endTime = endTime;
- }
}
diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/MessageRequestProcessor.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/MessageRequestProcessor.java
index 158bffb5..73f2dc52 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/MessageRequestProcessor.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/MessageRequestProcessor.java
@@ -308,7 +308,7 @@ public class MessageRequestProcessor extends SIPRequestAbstractProcessor {
record.setEndTime(DateUtil.ISO8601Toyyyy_MM_dd_HH_mm_ss(XmlUtil.getText(itemRecord,"EndTime")));
record.setSecrecy(itemRecord.element("Secrecy") == null? 0:Integer.parseInt(XmlUtil.getText(itemRecord,"Secrecy")));
record.setType(XmlUtil.getText(itemRecord,"Type"));
- record.setRecordId(XmlUtil.getText(itemRecord,"RecorderID"));
+ record.setRecorderId(XmlUtil.getText(itemRecord,"RecorderID"));
recordList.add(record);
}
recordInfo.setRecordList(recordList);
diff --git a/src/main/java/com/genersoft/iot/vmp/storager/redis/VideoManagerRedisStoragerImpl.java b/src/main/java/com/genersoft/iot/vmp/storager/redis/VideoManagerRedisStoragerImpl.java
index 0c58763a..d46c357b 100644
--- a/src/main/java/com/genersoft/iot/vmp/storager/redis/VideoManagerRedisStoragerImpl.java
+++ b/src/main/java/com/genersoft/iot/vmp/storager/redis/VideoManagerRedisStoragerImpl.java
@@ -66,7 +66,6 @@ public class VideoManagerRedisStoragerImpl implements IVideoManagerStorager {
if (deviceMap.get(device.getDeviceId()) == null) {
deviceMap.put(device.getDeviceId(), new HashMap>());
}
-// List