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() |
static int |
getNbc() |
static List<String> |
getOfferIds() |
StoredInfoResult |
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 StoredInfoResult storeData(String strategyId, String objectId, File file, DataCategory category, int tenantId) throws StorageException, FileNotFoundException
strategyId
- strategyIdobjectId
- objectIdfile
- filecategory
- categorytenantId
- tenantIdStorageException
- StorageExceptionFileNotFoundException
- FileNotFoundExceptionpublic void close()
close
in interface VitamAutoCloseable
close
in interface AutoCloseable
public static int getNbc()
Copyright © 2018 Vitam. All rights reserved.