| | |
| | | import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel; |
| | | import com.genersoft.iot.vmp.gb28181.transmit.callback.DeferredResultHolder; |
| | | import com.genersoft.iot.vmp.gb28181.transmit.callback.RequestMessage; |
| | | import com.genersoft.iot.vmp.storager.IVideoManagerStorager; |
| | | import com.genersoft.iot.vmp.storager.IVideoManagerStorage; |
| | | import com.genersoft.iot.vmp.vmanager.bean.WVPResult; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | |
| | | private DeferredResultHolder deferredResultHolder; |
| | | |
| | | @Autowired |
| | | private IVideoManagerStorager storager; |
| | | private IVideoManagerStorage storager; |
| | | |
| | | public void put(String key, int total, Device device, List<DeviceChannel> deviceChannelList) { |
| | | CatalogData catalogData = data.get(key); |
| | |
| | | return catalogData.getChannelList(); |
| | | } |
| | | |
| | | public int getTotal(String key) { |
| | | CatalogData catalogData = data.get(key); |
| | | if (catalogData == null) return 0; |
| | | return catalogData.getTotal(); |
| | | } |
| | | |
| | | public void del(String key) { |
| | | data.remove(key); |
| | | } |