引入lombok框架
优化redis存储结构
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user