Class RestoreBackupService
- java.lang.Object
-
- fr.gouv.vitam.logbook.common.server.reconstruction.RestoreBackupService
-
public class RestoreBackupService extends java.lang.Object
Service used to recover a Backup copy of logbook operation Vitam collection.
-
-
Constructor Summary
Constructors Constructor Description RestoreBackupService()
ConstructorRestoreBackupService(StorageClientFactory storageClientFactory)
Constructor for tests
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<java.util.List<OfferLog>>
getListing(java.lang.String strategy, long offset, int limit)
Retrieve list of offer log defining objects to reconstruct from offer logLogbookBackupModel
loadData(java.lang.String strategy, java.lang.String filename, long offset)
Load data from storage
-
-
-
Constructor Detail
-
RestoreBackupService
public RestoreBackupService()
Constructor
-
RestoreBackupService
public RestoreBackupService(StorageClientFactory storageClientFactory)
Constructor for tests- Parameters:
storageClientFactory
- storage client factory
-
-
Method Detail
-
getListing
public java.util.Iterator<java.util.List<OfferLog>> getListing(java.lang.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 errorjava.lang.IllegalArgumentException
- input errorStorageServerClientException
StorageNotFoundClientException
-
loadData
public LogbookBackupModel loadData(java.lang.String strategy, java.lang.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 errorjava.lang.IllegalArgumentException
- input errorStorageNotFoundException
-
-