@Component public class SimpleSwiftConnectionProvider extends Object implements SwiftConnectionProvider
| Constructor and Description |
|---|
SimpleSwiftConnectionProvider(String provider,
String container,
String endpoint,
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.
|
public SimpleSwiftConnectionProvider(String provider, String container, String endpoint, 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)endpoint - Swift endpoint URLuser - user identitypassword - user passwordpublic void reconnectConnections()
SwiftConnectionProviderreconnectConnections in interface SwiftConnectionProvider@PreDestroy public void closeConnections()
SwiftConnectionProvidercloseConnections in interface SwiftConnectionProviderpublic String getContainer()
getContainer in interface SwiftConnectionProviderpublic org.jclouds.blobstore.BlobStore getBlobStore()
getBlobStore in interface SwiftConnectionProviderBlobStoreCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.