wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/service/IDeviceService.java

159 lines
3.3 KiB
Java
Raw Normal View History

2021-11-05 18:33:53 +08:00
package com.genersoft.iot.vmp.service;
import com.genersoft.iot.vmp.gb28181.bean.Device;
2022-07-03 07:40:54 +08:00
import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
2022-04-12 21:06:21 +08:00
import com.genersoft.iot.vmp.gb28181.bean.SyncStatus;
2022-07-03 07:40:54 +08:00
import com.genersoft.iot.vmp.vmanager.bean.BaseTree;
2021-11-05 18:33:53 +08:00
2022-05-11 18:37:24 +08:00
import java.util.List;
2021-11-05 18:33:53 +08:00
/**
*
2022-05-11 18:37:24 +08:00
* @author lin
2021-11-05 18:33:53 +08:00
*/
public interface IDeviceService {
2022-05-11 18:37:24 +08:00
/**
* 线
* @param device
*/
void online(Device device);
/**
* 线
* @param deviceId
*/
void offline(String deviceId);
2021-11-05 18:33:53 +08:00
/**
*
* @param device
2022-05-11 18:37:24 +08:00
* @return
2021-11-05 18:33:53 +08:00
*/
boolean addCatalogSubscribe(Device device);
/**
*
* @param device
2022-05-11 18:37:24 +08:00
* @return
2021-11-05 18:33:53 +08:00
*/
boolean removeCatalogSubscribe(Device device);
/**
*
* @param device
2022-05-11 18:37:24 +08:00
* @return
*/
boolean addMobilePositionSubscribe(Device device);
/**
*
* @param device
2022-05-11 18:37:24 +08:00
* @return
*/
boolean removeMobilePositionSubscribe(Device device);
2022-04-12 21:06:21 +08:00
/**
*
* @param deviceId ID
2022-05-11 18:37:24 +08:00
* @return
2022-04-12 21:06:21 +08:00
*/
SyncStatus getChannelSyncStatus(String deviceId);
/**
*
* @param deviceId ID
2022-05-11 18:37:24 +08:00
* @return
*/
Boolean isSyncRunning(String deviceId);
2022-04-12 21:06:21 +08:00
/**
*
2022-05-11 18:37:24 +08:00
* @param device
2022-04-12 21:06:21 +08:00
*/
void sync(Device device);
2022-05-11 18:37:24 +08:00
/**
*
* @param deviceId
* @return
*/
Device getDevice(String deviceId);
2022-05-11 18:37:24 +08:00
/**
* 线
* @return
*/
List<Device> getAllOnlineDevice();
/**
*
* @param device
* @return
*/
boolean expire(Device device);
/**
*
* @param device
*/
void checkDeviceStatus(Device device);
/**
* IP
* @param host IP
* @param port
* @return
*/
Device getDeviceByHostAndPort(String host, int port);
2022-05-12 10:48:50 +08:00
/**
*
* @param device
*/
void updateDevice(Device device);
2022-07-03 07:40:54 +08:00
/**
*
* @param deviceId ID
* @param parentId ID
* @param onlyCatalog
* @return
*/
List<BaseTree<DeviceChannel>> queryVideoDeviceTree(String deviceId, String parentId, boolean onlyCatalog);
/**
*
* @param deviceId ID
* @param parentId ID
* @return
*/
List<DeviceChannel> queryVideoDeviceInTreeNode(String deviceId, String parentId);
/**
*
* @param deviceId
* @return
*/
boolean isExist(String deviceId);
/**
*
* @param device
*/
void addDevice(Device device);
/**
*
* @param device
*/
void updateCustomDevice(Device device);
/**
*
* @param deviceId
* @return
*/
boolean delete(String deviceId);
2021-11-05 18:33:53 +08:00
}