Class RestoreBackupService
java.lang.Object
fr.gouv.vitam.logbook.common.server.reconstruction.RestoreBackupService
Service used to recover a Backup copy of logbook operation Vitam collection.
-
Constructor Summary
ConstructorDescriptionConstructorRestoreBackupService
(StorageClientFactory storageClientFactory) Constructor for tests -
Method Summary
Modifier and TypeMethodDescriptiongetListing
(String strategy, long offset, int limit) Retrieve list of offer log defining objects to reconstruct from offer logLoad data from storage
-
Constructor Details
-
RestoreBackupService
public RestoreBackupService()Constructor -
RestoreBackupService
Constructor for tests- Parameters:
storageClientFactory
- storage client factory
-
-
Method Details
-
getListing
public Iterator<List<OfferLog>> getListing(String strategy, long offset, int limit) throws StorageServerClientException, StorageNotFoundClientException Retrieve list of offer log defining objects to reconstruct from offer log- Parameters:
strategy
- storage strategyoffset
- offsetlimit
- limit- Returns:
- list of offer log by bulk
- Throws:
VitamRuntimeException
- storage errorIllegalArgumentException
- input errorStorageServerClientException
StorageNotFoundClientException
-
loadData
public LogbookBackupModel loadData(String strategy, String filename, long offset) throws StorageNotFoundException Load data from storage- Parameters:
strategy
- storage strategyfilename
- name of file to loadoffset
- offset- Returns:
- data
- Throws:
VitamRuntimeException
- storage errorIllegalArgumentException
- input errorStorageNotFoundException
-