Class InaIoService
java.lang.Object
fr.gouv.vitam.storage.cold.server.simulator.service.InaIoService
I/O Service for INA
Handles write and read operations with simple file copy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFunctional interface for actions that may throw checked exceptions. -
Constructor Summary
ConstructorsConstructorDescriptionInaIoService(InaTapeProxyConfiguration configuration, FileSystemManager fsManager, MarkerManager markerManager, TapeCatalogRepository tapeCatalogRepository, TapeDriveRepository tapeDriveRepository, InaTapeHelper inaTapeHelper) -
Method Summary
Modifier and TypeMethodDescriptionvoidreadFromTape(int driveIndex, String outputPath) Read from tape: Check if file is already in read directory or prepare it asynchronouslyvoidwriteToTape(int driveIndex, String inputPath) Writes a file to tape (exchange directory).
-
Constructor Details
-
InaIoService
public InaIoService(InaTapeProxyConfiguration configuration, FileSystemManager fsManager, MarkerManager markerManager, TapeCatalogRepository tapeCatalogRepository, TapeDriveRepository tapeDriveRepository, InaTapeHelper inaTapeHelper)
-
-
Method Details
-
writeToTape
Writes a file to tape (exchange directory). If the file already exists in destination, checksums are compared to avoid unnecessary copy. Checks tape capacity before writing and increments size after successful write.- Throws:
InaTapeProxyException
-
readFromTape
Read from tape: Check if file is already in read directory or prepare it asynchronously- Throws:
InaTapeProxyException
-