TMC Common LivelinessProbe
1. BaseLivelinessProbe
- class ska_tmc_common.liveliness_probe.BaseLivelinessProbe(component_manager, logger: <Mock id='140465903138608'>, proxy_timeout: int = 500, sleep_time: int = 1)
The BaseLivelinessProbe class has the responsibility to monitor the sub devices.
It is inherited for basic liveliness probe functionality.
TBD: what about scalability? what if we have 1000 devices?
- start() None
Starts the sub devices
- stop() None
Stops the sub devices
- run() NotImplementedError
Runs the sub devices :raises NotImplementedError:raises not implemented error if the method is not defined by child class.
- device_task(dev_info: DeviceInfo) None
Checks device status and logs error messages on state change
2. MultiDeviceLivelinessProbe
- class ska_tmc_common.liveliness_probe.MultiDeviceLivelinessProbe(component_manager, logger: <Mock id='140465903138608'>, max_workers: int = 5, proxy_timeout: int = 500, sleep_time: int = 1)
A class for monitoring multiple devices
- add_device(dev_name: str) None
A method to add device in the Queue for monitoring
- run() None
A method to run device in the queue for monitoring