old mode 100644
new mode 100755
|  |  |  | 
|---|
|  |  |  | package com.genersoft.iot.vmp.media.zlm.dto; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.genersoft.iot.vmp.gb28181.session.SsrcConfig; | 
|---|
|  |  |  | import com.genersoft.iot.vmp.media.zlm.ZLMServerConfig; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.media.Schema; | 
|---|
|  |  |  | import org.springframework.util.ObjectUtils; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.HashMap; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(description = "流媒体服务信息") | 
|---|
|  |  |  | public class MediaServerItem{ | 
|---|
|  |  |  | 
|---|
|  |  |  | @Schema(description = "多端口RTP收流端口范围") | 
|---|
|  |  |  | private String rtpPortRange; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(description = "RTP发流端口范围") | 
|---|
|  |  |  | private String sendRtpPortRange; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(description = "assist服务端口") | 
|---|
|  |  |  | private int recordAssistPort; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @Schema(description = "是否是默认ZLM") | 
|---|
|  |  |  | private boolean defaultServer; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(description = "SSRC信息") | 
|---|
|  |  |  | private SsrcConfig ssrcConfig; | 
|---|
|  |  |  | @Schema(description = "录像存储时长") | 
|---|
|  |  |  | private int recordDay; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(description = "当前使用到的端口") | 
|---|
|  |  |  | private int currentPort; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 每一台ZLM都有一套独立的SSRC列表 | 
|---|
|  |  |  | * 在ApplicationCheckRunner里对mediaServerSsrcMap进行初始化 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "ID") | 
|---|
|  |  |  | private HashMap<String, SsrcConfig> mediaServerSsrcMap; | 
|---|
|  |  |  | @Schema(description = "录像存储路径") | 
|---|
|  |  |  | private String recordPath; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public MediaServerItem() { | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | this.updateTime = updateTime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public HashMap<String, SsrcConfig> getMediaServerSsrcMap() { | 
|---|
|  |  |  | return mediaServerSsrcMap; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setMediaServerSsrcMap(HashMap<String, SsrcConfig> mediaServerSsrcMap) { | 
|---|
|  |  |  | this.mediaServerSsrcMap = mediaServerSsrcMap; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public SsrcConfig getSsrcConfig() { | 
|---|
|  |  |  | return ssrcConfig; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setSsrcConfig(SsrcConfig ssrcConfig) { | 
|---|
|  |  |  | this.ssrcConfig = ssrcConfig; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public int getCurrentPort() { | 
|---|
|  |  |  | return currentPort; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setCurrentPort(int currentPort) { | 
|---|
|  |  |  | this.currentPort = currentPort; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public boolean isStatus() { | 
|---|
|  |  |  | return status; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | public void setHookAliveInterval(Float hookAliveInterval) { | 
|---|
|  |  |  | this.hookAliveInterval = hookAliveInterval; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getSendRtpPortRange() { | 
|---|
|  |  |  | return sendRtpPortRange; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setSendRtpPortRange(String sendRtpPortRange) { | 
|---|
|  |  |  | this.sendRtpPortRange = sendRtpPortRange; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public int getRecordDay() { | 
|---|
|  |  |  | return recordDay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setRecordDay(int recordDay) { | 
|---|
|  |  |  | this.recordDay = recordDay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getRecordPath() { | 
|---|
|  |  |  | return recordPath; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setRecordPath(String recordPath) { | 
|---|
|  |  |  | this.recordPath = recordPath; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|