| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- package com.genersoft.iot.vmp.service;
- import com.genersoft.iot.vmp.gb28181.bean.Device;
- import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
- import com.genersoft.iot.vmp.gb28181.bean.MobilePosition;
- import com.genersoft.iot.vmp.vmanager.bean.ResourceBaseInfo;
- import com.genersoft.iot.vmp.vmanager.gb28181.platform.bean.ChannelReduce;
- import java.util.List;
- /**
- * 国标通道业务类
- * @author lin
- */
- public interface IDeviceChannelService {
- /**
- * 添加设备通道
- *
- * @param deviceId 设备id
- * @param channel 通道
- */
- void updateChannel(String deviceId, DeviceChannel channel);
- /**
- * 批量添加设备通道
- */
- int updateChannels(Device device, List<DeviceChannel> channels);
- /**
- * 获取统计信息
- * @return
- */
- ResourceBaseInfo getOverview();
- /**
- * 查询所有未分配的通道
- * @param platformId
- * @return
- */
- List<ChannelReduce> queryAllChannelList(String platformId);
- /**
- * 数据位置信息格式处理
- */
- boolean updateAllGps(Device device);
- /**
- * 查询通道所属的设备
- */
- List<Device> getDeviceByChannelId(String channelId);
- /**
- * 批量删除通道
- * @param deleteChannelList 待删除的通道列表
- */
- int deleteChannels(List<DeviceChannel> deleteChannelList);
- /**
- * 批量上线
- */
- int channelsOnline(List<DeviceChannel> channels);
- /**
- * 批量下线
- */
- int channelsOffline(List<DeviceChannel> channels);
- /**
- * 获取一个通道
- */
- DeviceChannel getOne(String deviceId, String channelId);
- /**
- * 直接批量更新通道
- */
- void batchUpdateChannel(List<DeviceChannel> channels);
- /**
- * 直接批量添加
- */
- void batchAddChannel(List<DeviceChannel> deviceChannels);
- /**
- * 修改通道的码流类型
- */
- void updateChannelStreamIdentification(DeviceChannel channel);
- List<DeviceChannel> queryChaneListByDeviceId(String deviceId);
- void updateChannelGPS(Device device, DeviceChannel deviceChannel, MobilePosition mobilePosition);
- void startPlay(String deviceId, String channelId, String stream);
- void stopPlay(String deviceId, String channelId);
- void batchUpdateChannelGPS(List<DeviceChannel> channelList);
- void batchAddMobilePosition(List<MobilePosition> addMobilePositionList);
- void online(DeviceChannel channel);
- void offline(DeviceChannel channel);
- void delete(DeviceChannel channel);
- void cleanChannelsForDevice(int deviceId);
- boolean resetChannels(String deviceId, List<DeviceChannel> deviceChannels);
- }
|