@Component public class DynamicSwiftConnectionProvider extends Object implements SwiftConnectionProvider
| Constructor and Description |
|---|
DynamicSwiftConnectionProvider(String provider,
String container,
String endpointsList,
String user,
String password)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnections()
Close connection on container destroy.
|
org.jclouds.blobstore.BlobStore |
getBlobStore() |
String |
getContainer() |
void |
reconnectConnections()
Reconnect connection.
|
void |
setBlobStores()
Initialize
DynamicBlobStore. |
public DynamicSwiftConnectionProvider(String provider, String container, String endpointsList, String user, String password)
provider - provider name. Pass "transient" if you want to use in-memory
implementation for tests, and "swift" for accessing live
Openstack Swift.container - name of the Swift container (namespace)endpointsList - list of Swift endpoint URLsuser - user identitypassword - user password@PostConstruct public void setBlobStores()
DynamicBlobStore.@PreDestroy public void closeConnections()
SwiftConnectionProvidercloseConnections in interface SwiftConnectionProviderpublic String getContainer()
getContainer in interface SwiftConnectionProviderpublic org.jclouds.blobstore.BlobStore getBlobStore()
getBlobStore in interface SwiftConnectionProviderBlobStorepublic void reconnectConnections()
reconnectConnections in interface SwiftConnectionProviderCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.