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,
MetadataCollections collection,
long offset,
int limit)
Retrieve list of offer log defining objects to reconstruct from offer log
|
MetadataBackupModel |
loadData(String strategy,
MetadataCollections collection,
String filename,
long offset)
Load data from storage
|
public RestoreBackupService()
public RestoreBackupService(StorageClientFactory storageClientFactory)
storageClientFactory
- storage client factorypublic List<List<OfferLog>> getListing(String strategy, MetadataCollections collection, long offset, int limit)
strategy
- storage strategycollection
- collectionoffset
- offsetlimit
- limitVitamRuntimeException
- storage errorIllegalArgumentException
- input errorpublic MetadataBackupModel loadData(String strategy, MetadataCollections collection, String filename, long offset)
strategy
- storage strategycollection
- collectionfilename
- name of file to loadoffset
- offsetVitamRuntimeException
- storage errorIllegalArgumentException
- input errorCopyright © 2018 Vitam. All rights reserved.