Shards are attribute of StorageNode class

This commit is contained in:
Yaroslava Lukoyanova 2023-12-21 10:47:43 +03:00 committed by ylukoyan
parent 73c362c307
commit a4d1082ed5
3 changed files with 135 additions and 6 deletions

View file

@ -219,12 +219,22 @@ class Host(ABC):
"""
@abstractmethod
def delete_pilorama(self, service_name: str) -> None:
def delete_file(self, file_path: str) -> None:
"""
Deletes all pilorama.db files in the node.
Deletes file with provided file path
Args:
service_name: Name of storage node service.
file_path: full path to the file to delete
"""
@abstractmethod
def is_file_exist(self, file_path: str) -> bool:
"""
Checks if file exist
Args:
file_path: full path to the file to check
"""