public class RestoreBackupService extends Object
| Constructor and Description |
|---|
RestoreBackupService()
Constructor
|
RestoreBackupService(StorageClientFactory storageClientFactory)
Constructor for tests
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<OfferLog> |
getListing(String strategy,
DataCategory category,
Long offset,
Integer limit,
Order order,
int batchSize)
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 Iterator<OfferLog> getListing(String strategy, DataCategory category, Long offset, Integer limit, Order order, int batchSize)
strategy - storage strategycategory - collectionoffset - offsetlimit - limitbatchSize - VitamRuntimeException - storage errorIllegalArgumentException - input errorpublic MetadataBackupModel loadData(String strategy, MetadataCollections collection, String filename, long offset) throws StorageNotFoundException
strategy - storage strategycollection - collectionfilename - name of file to loadoffset - offsetVitamRuntimeException - storage errorIllegalArgumentException - input errorStorageNotFoundExceptionpublic InputStream loadData(String strategy, DataCategory category, String filename) throws StorageNotFoundException
StorageNotFoundExceptionCopyright © 2019 Vitam. All rights reserved.