| | |
| | | import com.genersoft.iot.vmp.conf.DynamicTask; |
| | | import com.genersoft.iot.vmp.gb28181.bean.Device; |
| | | import com.genersoft.iot.vmp.gb28181.transmit.cmd.ISIPCommander; |
| | | import com.genersoft.iot.vmp.gb28181.transmit.event.request.impl.message.response.cmd.CatalogResponseMessageHandler; |
| | | import com.genersoft.iot.vmp.service.IDeviceService; |
| | | import com.genersoft.iot.vmp.gb28181.task.impl.CatalogSubscribeTask; |
| | | import com.genersoft.iot.vmp.gb28181.task.impl.MobilePositionSubscribeTask; |
| | | import com.genersoft.iot.vmp.gb28181.bean.SyncStatus; |
| | | import com.genersoft.iot.vmp.storager.IRedisCatchStorage; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Autowired |
| | | private ISIPCommander sipCommander; |
| | | |
| | | @Autowired |
| | | private CatalogResponseMessageHandler catalogResponseMessageHandler; |
| | | |
| | | @Autowired |
| | | private IRedisCatchStorage redisCatchStorage; |
| | | |
| | | @Override |
| | | public boolean addCatalogSubscribe(Device device) { |
| | |
| | | dynamicTask.stop(device.getDeviceId() + "mobile_position"); |
| | | return true; |
| | | } |
| | | |
| | | @Override |
| | | public SyncStatus getChannelSyncStatus(String deviceId) { |
| | | return catalogResponseMessageHandler.getChannelSyncProgress(deviceId); |
| | | } |
| | | |
| | | @Override |
| | | public void setChannelSyncReady(String deviceId) { |
| | | catalogResponseMessageHandler.setChannelSyncReady(deviceId); |
| | | } |
| | | |
| | | @Override |
| | | public void setChannelSyncEnd(String deviceId, String errorMsg) { |
| | | catalogResponseMessageHandler.setChannelSyncEnd(deviceId, errorMsg); |
| | | } |
| | | } |