IDeviceChannelService.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. package com.genersoft.iot.vmp.service;
  2. import com.genersoft.iot.vmp.gb28181.bean.Device;
  3. import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
  4. import com.genersoft.iot.vmp.gb28181.bean.MobilePosition;
  5. import com.genersoft.iot.vmp.vmanager.bean.ResourceBaseInfo;
  6. import com.genersoft.iot.vmp.vmanager.gb28181.platform.bean.ChannelReduce;
  7. import java.util.List;
  8. /**
  9. * 国标通道业务类
  10. * @author lin
  11. */
  12. public interface IDeviceChannelService {
  13. /**
  14. * 添加设备通道
  15. *
  16. * @param deviceId 设备id
  17. * @param channel 通道
  18. */
  19. void updateChannel(String deviceId, DeviceChannel channel);
  20. /**
  21. * 批量添加设备通道
  22. */
  23. int updateChannels(Device device, List<DeviceChannel> channels);
  24. /**
  25. * 获取统计信息
  26. * @return
  27. */
  28. ResourceBaseInfo getOverview();
  29. /**
  30. * 查询所有未分配的通道
  31. * @param platformId
  32. * @return
  33. */
  34. List<ChannelReduce> queryAllChannelList(String platformId);
  35. /**
  36. * 数据位置信息格式处理
  37. */
  38. boolean updateAllGps(Device device);
  39. /**
  40. * 查询通道所属的设备
  41. */
  42. List<Device> getDeviceByChannelId(String channelId);
  43. /**
  44. * 批量删除通道
  45. * @param deleteChannelList 待删除的通道列表
  46. */
  47. int deleteChannels(List<DeviceChannel> deleteChannelList);
  48. /**
  49. * 批量上线
  50. */
  51. int channelsOnline(List<DeviceChannel> channels);
  52. /**
  53. * 批量下线
  54. */
  55. int channelsOffline(List<DeviceChannel> channels);
  56. /**
  57. * 获取一个通道
  58. */
  59. DeviceChannel getOne(String deviceId, String channelId);
  60. /**
  61. * 直接批量更新通道
  62. */
  63. void batchUpdateChannel(List<DeviceChannel> channels);
  64. /**
  65. * 直接批量添加
  66. */
  67. void batchAddChannel(List<DeviceChannel> deviceChannels);
  68. /**
  69. * 修改通道的码流类型
  70. */
  71. void updateChannelStreamIdentification(DeviceChannel channel);
  72. List<DeviceChannel> queryChaneListByDeviceId(String deviceId);
  73. void updateChannelGPS(Device device, DeviceChannel deviceChannel, MobilePosition mobilePosition);
  74. void startPlay(String deviceId, String channelId, String stream);
  75. void stopPlay(String deviceId, String channelId);
  76. void batchUpdateChannelGPS(List<DeviceChannel> channelList);
  77. void batchAddMobilePosition(List<MobilePosition> addMobilePositionList);
  78. void online(DeviceChannel channel);
  79. void offline(DeviceChannel channel);
  80. void delete(DeviceChannel channel);
  81. void cleanChannelsForDevice(int deviceId);
  82. boolean resetChannels(String deviceId, List<DeviceChannel> deviceChannels);
  83. }