wrench.file_registry_service
- class wrench.file_registry_service.FileRegistryService(simulation, name: str)
Bases:
SimulationItemWRENCH File Registry Service class
- add_entry(storage_service: StorageService, file: File)
Add an entry (storage service / file) to the file registry service
- Parameters:
storage_service (StorageService) – a storage service
file (File) – a file
- 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:
file (File) – a file
storage_service (StorageService) – a storage service
- Returns: