public class OpenstackSwift extends ContentAddressableStorageJcloudsAbstract
BlobStoreContext
configured on StorageConfiguration
storage.conf file . This can be used to make an information about container.SwiftApi
,
BlobStoreContext
,
https://github.com/jclouds/jclouds/pull/1046
context
LISTING_MAX_RESULTS
Constructor and Description |
---|
OpenstackSwift(StorageConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeContext()
Close context according to implementation (http client not closed)
|
void |
createContainer(String containerName)
Creates a container
|
ContainerInformation |
getContainerInformation(String containerName)
Get container information like capacity
|
org.jclouds.blobstore.BlobStoreContext |
getContext(StorageConfiguration configuration)
enables the connection to a storage service with the param provided
|
int |
getMaxResults() |
MetadatasObject |
getObjectMetadatas(String containerName,
String objectId)
get metadata of the object
|
countObjects, deleteObject, getConfiguration, getObject, getObjectAsync, getObjectInformation, isExistingContainer, isExistingObject, listContainer, listContainerNext, putObject, setConfiguration
checkObject, computeObjectDigest
public OpenstackSwift(StorageConfiguration configuration)
configuration
- public ContainerInformation getContainerInformation(String containerName) throws ContentAddressableStorageNotFoundException
ContentAddressableStorage
getContainerInformation
in interface ContentAddressableStorage
getContainerInformation
in class ContentAddressableStorageJcloudsAbstract
containerName
- the container nameContentAddressableStorageNotFoundException
- Thrown when the container cannot be located.public org.jclouds.blobstore.BlobStoreContext getContext(StorageConfiguration configuration)
ContentAddressableStorageJcloudsAbstract
getContext
in class ContentAddressableStorageJcloudsAbstract
configuration
- the storage configurationpublic void closeContext()
ContentAddressableStorageJcloudsAbstract
closeContext
in class ContentAddressableStorageJcloudsAbstract
public void close()
public void createContainer(String containerName) throws ContentAddressableStorageAlreadyExistException
ContentAddressableStorage
createContainer
in interface ContentAddressableStorage
createContainer
in class ContentAddressableStorageJcloudsAbstract
containerName
- name of container to createContentAddressableStorageAlreadyExistException
- Thrown when creating a container while it (containerName)
already existspublic int getMaxResults()
getMaxResults
in class ContentAddressableStorageJcloudsAbstract
public MetadatasObject getObjectMetadatas(String containerName, String objectId) throws ContentAddressableStorageException
ContentAddressableStorage
getObjectMetadatas
in interface ContentAddressableStorage
getObjectMetadatas
in class ContentAddressableStorageJcloudsAbstract
containerName
- the container nameobjectId
- the objectId to checkContentAddressableStorageException
- Thrown when get action failed due some other failureCopyright © 2018 Vitam. All rights reserved.