perun.backend.backend
Backend module.
Attributes
Classes
Abstract backend class. |
Module Contents
- perun.backend.backend.log
- class perun.backend.backend.Backend
Abstract backend class.
- id: str = 'abstract_backend'
- name: str = 'Abstract backend class'
- description: str = 'Abstract backend class description'
- devices: Dict
- _metadata: Dict
- property metadata: Dict
Return backend metadata.
- abstract availableSensors() Dict[str, Tuple]
Return a dictionary with all available sensors. Each entry contains the backend id and type of sensor.
Returns
- Dict[Tuple[str]]
Dictionary with device ids and measurement unit.
- abstract getSensors(deviceList: Set[str]) List[perun.data_model.sensor.Sensor]
Return device objects based on the provided list of device ids.
Parameters
- deviceListSet[str]
List with wanted device ids
Returns
- List[Sensor]
List of device objects
- abstract close()
Clean up and close backend related activities.
- abstract setup()
Perform backend setup.