Class StoreContextBuilder
java.lang.Object
fr.gouv.vitam.cas.container.builder.StoreContextBuilder
Creates
Ex. to build a
ContentAddressableStorage
configured in a configuration file
Ex. to build a
ContentAddressableStorage
of a particular store
context,
storeConfiguration = new StorageConfiguration().setProvider(StorageProvider.SWIFT_AUTH_V1.getValue()) .setSwiftKeystoneAuthUrl("http://10.10.10.10:5000/auth/v1.0) .setTenantName(swift) .setUserName(user) .setSwiftPassword(passwd); contentAddressableStorage=StoreContextBuilder.newStoreContext(storeConfiguration);
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContentAddressableStorage
newStoreContext
(StorageConfiguration configuration, com.mongodb.client.MongoDatabase mongoDatabase) BuildsContentAddressableStorage
-
Constructor Details
-
StoreContextBuilder
public StoreContextBuilder()
-
-
Method Details
-
newStoreContext
public static ContentAddressableStorage newStoreContext(StorageConfiguration configuration, com.mongodb.client.MongoDatabase mongoDatabase) throws CertificateException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException, IOException, IllegalPathException BuildsContentAddressableStorage
- Parameters:
configuration
-StorageConfiguration
- Returns:
- ContentAddressableStorage : by default fileSystem or openstack-swift if it is configured
- Throws:
CertificateException
NoSuchAlgorithmException
KeyStoreException
KeyManagementException
IOException
IllegalPathException
-