Class StoreContextBuilder
- java.lang.Object
-
- fr.gouv.vitam.cas.container.builder.StoreContextBuilder
-
public class StoreContextBuilder extends java.lang.Object
CreatesContentAddressableStorage
configured in a configuration file
Ex. to build aContentAddressableStorage
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
Constructors Constructor Description StoreContextBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContentAddressableStorage
newStoreContext(StorageConfiguration configuration, com.mongodb.client.MongoDatabase mongoDatabase)
BuildsContentAddressableStorage
-
-
-
Method Detail
-
newStoreContext
public static ContentAddressableStorage newStoreContext(StorageConfiguration configuration, com.mongodb.client.MongoDatabase mongoDatabase) throws java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.KeyStoreException, java.security.KeyManagementException, java.io.IOException
BuildsContentAddressableStorage
- Parameters:
configuration
-StorageConfiguration
- Returns:
- ContentAddressableStorage : by default fileSystem or openstack-swift if it is configured
- Throws:
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
java.security.KeyManagementException
java.io.IOException
-
-