- EntityConfig - cn.foxtech.channel.common.config中的类
-
告知Spring框架去扫描其他包中的Component
Device服务不使用数据库,所以不通过扫描map来实例化MyBatis组件
- EntityConfig() - 类 的构造器cn.foxtech.channel.common.config.EntityConfig
-
- EntityManageService - cn.foxtech.channel.common.service中的类
-
数据实体业务
- EntityManageService() - 类 的构造器cn.foxtech.channel.common.service.EntityManageService
-
- execute(ChannelRequestVO) - 类 中的方法cn.foxtech.channel.common.api.ChannelClientAPI
-
执行主从半双工操作:上位机向设备问询,并等待设备的回答,直到设备响应或者超时
- execute(ChannelRequestVO) - 类 中的方法cn.foxtech.channel.common.api.ChannelServerAPI
-
执行主从半双工操作:上位机向设备问询,并等待设备的回答,直到设备响应或者超时
- execute(long) - 类 中的方法cn.foxtech.channel.common.scheduler.ChannelRedisScheduler
-
- execute(long) - 类 中的方法cn.foxtech.channel.common.service.RedisTopicReportToDeviceService
-
执行任务
步骤:
1.获取全局设备列表和操作列表,进行循环遍历操作
2.从全局设备配置中,获得设备的配置参数
3.将操作请求编码后发送给设备,并对设备返回的数据进行解码,得到设备的各项数值
4.将设备的各项数值,写入redis保存,通过redis分享给其他服务
说明:SyncQueueObjectMap.inst().popup默认waite了100毫秒,所以不再需要专门的sleep(100)
- execute(long) - 类 中的方法cn.foxtech.channel.common.service.RedisTopicRespondDeviceService
-
执行任务
步骤:
1.获取全局设备列表和操作列表,进行循环遍历操作
2.从全局设备配置中,获得设备的配置参数
3.将操作请求编码后发送给设备,并对设备返回的数据进行解码,得到设备的各项数值
4.将设备的各项数值,写入redis保存,通过redis分享给其他服务
说明:SyncQueueObjectMap.inst().popup默认waite了100毫秒,所以不再需要专门的sleep(100)
- execute(long) - 类 中的方法cn.foxtech.channel.common.service.RedisTopicRespondManagerService
-
执行任务
步骤:
1.获取全局设备列表和操作列表,进行循环遍历操作
2.从全局设备配置中,获得设备的配置参数
3.将操作请求编码后发送给设备,并对设备返回的数据进行解码,得到设备的各项数值
4.将设备的各项数值,写入redis保存,通过redis分享给其他服务