| | |
| | | |
| | | public interface IDeviceAdapterService |
| | | { |
| | | /** 按管理端筛选条件查询设备适配器实例。 */ |
| | | List<TDeviceAdapter> selectList(TDeviceAdapter query); |
| | | |
| | | /** 查询设备适配器详情;实例不存在时返回稳定业务错误。 */ |
| | | TDeviceAdapter selectById(Long adapterId); |
| | | |
| | | /** 新增默认禁用的只读设备适配器配置。 */ |
| | | int insert(TDeviceAdapter adapter); |
| | | |
| | | /** 更新设备适配器配置,并同步已启用的运行时实例。 */ |
| | | int update(TDeviceAdapter adapter); |
| | | |
| | | /** 启用或停用设备适配器,并同步运行时生命周期。 */ |
| | | int changeStatus(Long adapterId, boolean enabled, String updateBy); |
| | | |
| | | /** 执行一次发现和实时观测,并持久化本轮设备事实。 */ |
| | | AdapterDiscoveryResult discover(Long adapterId); |
| | | |
| | | /** 查询指定适配器已发现且未被删除的通道。 */ |
| | | List<TDetectionChannel> selectChannels(Long adapterId); |
| | | |
| | | /** 启动时恢复所有已启用适配器的运行时实例。 */ |
| | | void synchronizeEnabledAdapters(); |
| | | |
| | | /** 对达到轮询周期的已启用适配器执行发现。 */ |
| | | void pollDueAdapters(); |
| | | } |