Class SftpIoService
java.lang.Object
fr.gouv.vitam.storage.cold.server.service.SftpIoService
- All Implemented Interfaces:
VitamAutoCloseable,IoService,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionSftpIoService(InaTapeProxyConfiguration configuration, InaTapeHelper inaTapeHelper) -
Method Summary
-
Constructor Details
-
SftpIoService
-
-
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
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceVitamAutoCloseable
-