public class RestoreBackupService extends Object
| Constructor and Description |
|---|
RestoreBackupService()
Constructor
|
RestoreBackupService(StorageClientFactory storageClientFactory)
Constructor for tests
|
| Modifier and Type | Method and Description |
|---|---|
List<OfferLog> |
getListing(String strategy,
DataCategory category,
Long offset,
int limit,
Order order)
Retrieve list of offer log defining objects to reconstruct from offer log
|
InputStream |
loadData(String strategy,
DataCategory category,
String filename) |
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<OfferLog> getListing(String strategy, DataCategory category, Long offset, int limit, Order order)
strategy - storage strategycategory - 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 errorpublic InputStream loadData(String strategy, DataCategory category, String filename)
Copyright © 2018 Vitam. All rights reserved.