Interface TarRecovery
-
public interface TarRecovery
A strategy for the recovery of segments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
recoverEntry(UUID uuid, byte[] data, EntryRecovery entryRecovery)
Recover the data and meta-data of the given segment.
-
-
-
Method Detail
-
recoverEntry
void recoverEntry(UUID uuid, byte[] data, EntryRecovery entryRecovery) throws IOException
Recover the data and meta-data of the given segment. The implementor of this method might want to parse the content of the segment and generate any metadata as needed. The result of the recovery process has to be saved in the providedTarWriter
.- Parameters:
uuid
- the identifier of the segment.data
- the raw data of the segment.entryRecovery
- the destination of the recovered data.- Throws:
IOException
- if an I/O error occurs while recovering the data of the segment.
-
-