wrench.file_registry_service

class wrench.file_registry_service.FileRegistryService(simulation, name: str)

Bases: SimulationItem

WRENCH File Registry Service class

add_entry(storage_service: StorageService, file: File)

Add an entry (storage service / file) to the file registry service

Parameters:
Returns:

get_name() str

Get the name

lookup_entry(file: File) List[StorageService]

Lookup an entry (file) to the file registry service

Parameters:

file (File) – a file

Returns:

List of StorageServices associated with file

Return type:

str[]

remove_entry(storage_service: StorageService, file: File)

Removes an entry (file/storage service) from the file registry service

Parameters:
Returns: