System info
System info adapter class for the ODIN server.
This class implements a system information adapter for the ODIN server, providing system-level information about the system to clients.
Tim Nicholls, STFC Application Engineering
SystemInfoAdapter
Bases: ApiAdapter
System info adapter class for the ODIN server.
This adapter provides ODIN clients with information about the server and the system that it is running on.
Source code in src/odin_control/adapters/system_info.py
SystemInfoController
Bases: BaseController
SystemInfoController class that extracts and stores system-level parameters.
Source code in src/odin_control/adapters/system_info.py
__init__(options=None)
Initialise the SystemInfo object.
This constructor initlialises the SystemInfo object, extracting various system-level parameters and storing them in a parameter tree to be accessible to clients.
Source code in src/odin_control/adapters/system_info.py
get(path, with_metadata=False)
Get the parameter tree.
This method returns the parameter tree for use by clients via the SystemInfo adapter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
path to retrieve from tree |
required |
Source code in src/odin_control/adapters/system_info.py
get_server_uptime()
Get the uptime for the ODIN server.
This method returns the current uptime for the ODIN server.