Class TapeLabelIoServiceDecorator
java.lang.Object
fr.gouv.vitam.storage.cold.server.service.TapeLabelIoServiceDecorator
- All Implemented Interfaces:
IoService
Intercepts tape label read and write operations to retrieve them from a local disk directory.
Virtual tape labels are Vitam-specific identifiers that INA does not manage. Intercepting these operations avoids sending internal artifacts over the network and eliminates unnecessary INA round-trips for tiny files, significantly optimizing read and write performance.
Label files are persisted locally via TapeLabelStore. All other I/O operations (such as archive files)
are delegated directly to the underlying IoService.
-
Constructor Summary
ConstructorsConstructorDescriptionTapeLabelIoServiceDecorator(IoService delegate, TapeLabelStore labelStore, InaTapeHelper inaTapeHelper) -
Method Summary
-
Constructor Details
-
TapeLabelIoServiceDecorator
public TapeLabelIoServiceDecorator(IoService delegate, TapeLabelStore labelStore, InaTapeHelper inaTapeHelper)
-
-
Method Details
-
write
Description copied from interface:IoServiceWrites a file to tape storage.- Specified by:
writein interfaceIoService- Parameters:
driveIndex- the index of the tape drive to useinputPath- the path of the source file to write- Throws:
InaTapeProxyException
-
read
Description copied from interface:IoServiceReads a file from tape storage.- Specified by:
readin interfaceIoService- Parameters:
driveIndex- the index of the tape driveoutputPath- the destination path for the retrieved file- Throws:
InaTapeProxyException
-
tapeOrder
- Specified by:
tapeOrderin interfaceIoService- Throws:
InaTapeProxyException
-