ServiceConfiguration#
- class wattson.services.configuration.service_configuration.ServiceConfiguration#
Bases:
dictMethods
dumploadSets the service's priority to the given value.
to_dictAttributes
nameReturns the starting priority of this service.
service_type- property priority: ServicePriority#
Returns the starting priority of this service. Higher priority-services should be started first :return: The priority
- set_priority(priority: float, is_local: bool = True)#
Sets the service’s priority to the given value. If relative is True, the given value is interpreted as the desired difference to the DEFAULT_SERVICE_PRIORITY, i.e., it will be added to this value. Otherwise, the given value will be set directly.
- Parameters:
priority (float) – The desired priority (offset)
is_local (bool, optional) – Indicator for whether the given priority should be seen as a node-specific offset or an absolute value (Default value = True)