public class RestoreBackupService extends Object
Constructor and Description |
---|
RestoreBackupService()
Constructor
|
RestoreBackupService(StorageClientFactory storageClientFactory)
Constructor for tests
|
Modifier and Type | Method and Description |
---|---|
List<List<OfferLog>> |
getListing(String strategy,
long offset,
int limit)
Retrieve list of offer log defining objects to reconstruct from offer log
|
LogbookBackupModel |
loadData(String strategy,
String filename,
long offset)
Load data from storage
|
public RestoreBackupService()
public RestoreBackupService(StorageClientFactory storageClientFactory)
storageClientFactory
- storage client factorypublic List<List<OfferLog>> getListing(String strategy, long offset, int limit)
strategy
- storage strategyoffset
- offsetlimit
- limitVitamRuntimeException
- storage errorIllegalArgumentException
- input errorpublic LogbookBackupModel loadData(String strategy, String filename, long offset)
strategy
- storage strategyfilename
- name of file to loadoffset
- offsetVitamRuntimeException
- storage errorIllegalArgumentException
- input errorCopyright © 2018 Vitam. All rights reserved.