Service restart

Signed-off-by: Vladislav Karakozov <v.karakozov@yadro.com>
This commit is contained in:
Vladislav Karakozov 2023-02-07 13:13:57 +03:00 committed by Vlad K
parent 469ab4db43
commit 11d65091ad
4 changed files with 24 additions and 4 deletions

View file

@ -104,6 +104,14 @@ class Host(ABC):
service_name: Name of the service to stop.
"""
@abstractmethod
def restart_service(self, service_name: str) -> None:
"""Restarts the service with specified name and waits until it starts.
The service must be hosted on this host.
Args:
service_name: Name of the service to restart.
"""
@abstractmethod
def delete_storage_node_data(self, service_name: str, cache_only: bool = False) -> None:
"""Erases all data of the storage node with specified name.