public class StoragePopulateImpl extends Object implements VitamAutoCloseable
Constructor and Description |
---|
StoragePopulateImpl(StorageConfiguration configuration)
Constructs the service with a given configuration
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
RequestResponse<TapeReadRequestReferentialEntity> |
createReadOrderRequest(Integer tenantId,
String strategyId,
String offerId,
String objectId,
DataCategory category) |
VitamAsyncInputStreamResponse |
download(Integer tenantId,
DataCategory dataCategory,
String strategyId,
String offerId,
String objectId) |
static int |
getNbc() |
StorageOffer |
getOffer(String offerId) |
static List<String> |
getOfferIds() |
List<OfferReference> |
getOffersReferences(String strategyId) |
RequestResponse<TapeReadRequestReferentialEntity> |
getReadOrderRequest(Integer tenantId,
String strategyId,
String offerId,
String readOrderRequestIt) |
Collection<StorageStrategy> |
getStrategies() |
void |
storeData(String strategyId,
String objectId,
File file,
DataCategory category,
int tenantId)
createObjectDescription AND jsonData in the same params but
they should not be both resent at the same time.
|
public StoragePopulateImpl(StorageConfiguration configuration)
configuration
- configuration of storage serverpublic void storeData(String strategyId, String objectId, File file, DataCategory category, int tenantId) throws StorageException, FileNotFoundException
strategyId
- strategyIdobjectId
- objectIdfile
- filecategory
- categorytenantId
- tenantIdStorageException
- StorageExceptionFileNotFoundException
- FileNotFoundExceptionpublic RequestResponse<TapeReadRequestReferentialEntity> createReadOrderRequest(Integer tenantId, String strategyId, String offerId, String objectId, DataCategory category)
public VitamAsyncInputStreamResponse download(Integer tenantId, DataCategory dataCategory, String strategyId, String offerId, String objectId) throws StorageTechnicalException, StorageDriverException, StorageNotFoundException
public RequestResponse<TapeReadRequestReferentialEntity> getReadOrderRequest(Integer tenantId, String strategyId, String offerId, String readOrderRequestIt)
public StorageOffer getOffer(String offerId) throws StorageException
StorageException
public Collection<StorageStrategy> getStrategies() throws StorageException
StorageException
public void close()
close
in interface VitamAutoCloseable
close
in interface AutoCloseable
public static int getNbc()
public List<OfferReference> getOffersReferences(String strategyId) throws StorageNotFoundException, StorageTechnicalException
Copyright © 2019 Vitam. All rights reserved.