WattsonFrRoutingService#
- class wattson.services.routing.wattson_fr_routing_service.WattsonFrRoutingService(service_configuration: ServiceConfiguration, network_node: WattsonNetworkNode)#
Bases:
WattsonServiceMethods
can_listenensure_artifactsget_extra_argumentsget_log_file_path_on_guestget_pid_fileget_socket_fileget_start_script_content- returns:
The file descriptor to use as stderr
- returns:
The file descriptor to use as stdout
get_stop_script_contentget_tmp_path- returns:
Whether the service is currently running.
pre_startStart the service.
Stop the service.
write_configurationwrite_fr_config_fileAttributes
tmp_dir_by_hostidname- __init__(service_configuration: ServiceConfiguration, network_node: WattsonNetworkNode)#
- get_stderr()#
- Returns:
The file descriptor to use as stderr
- get_stdout()#
- Returns:
The file descriptor to use as stdout
- is_running() bool#
- Returns:
Whether the service is currently running.
- Return type:
bool
- start(refresh_config: bool = False) bool#
Start the service.
- Parameters:
refresh_config (bool, optional) – Whether to refresh the config even if it already exists. (Default value = False)
- Returns:
True iff the service has been started.
- Return type:
bool
- stop(wait_seconds: float = 5, auto_kill: bool = False, async_callback: Callable[[WattsonService], None] | None = None) bool#
Stop the service.
- Parameters:
wait_seconds (float, optional) – Number of seconds to wait for the service to gracefully terminate. (Default value = 5)
auto_kill (bool, optional) – Whether to kill the service automatically after the waiting timeout has been exceeded. (Default value = False)
async_callback (Optional[Callable[['WattsonServiceInterface'], None]], optional) – An optional callback to call once the service has terminated. Makes the stop method return immediately. (Default value = None)
- Returns:
None if an async_callback is given, else True iff the service has been terminated.
- Return type:
bool