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
contextLISTING_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, setConfigurationcheckObject, computeObjectDigestpublic OpenstackSwift(StorageConfiguration configuration)
configuration - public ContainerInformation getContainerInformation(String containerName) throws ContentAddressableStorageNotFoundException
ContentAddressableStoragegetContainerInformation in interface ContentAddressableStoragegetContainerInformation in class ContentAddressableStorageJcloudsAbstractcontainerName - the container nameContentAddressableStorageNotFoundException - Thrown when the container cannot be located.public org.jclouds.blobstore.BlobStoreContext getContext(StorageConfiguration configuration)
ContentAddressableStorageJcloudsAbstractgetContext in class ContentAddressableStorageJcloudsAbstractconfiguration - the storage configurationpublic void closeContext()
ContentAddressableStorageJcloudsAbstractcloseContext in class ContentAddressableStorageJcloudsAbstractpublic void close()
public void createContainer(String containerName) throws ContentAddressableStorageAlreadyExistException
ContentAddressableStoragecreateContainer in interface ContentAddressableStoragecreateContainer in class ContentAddressableStorageJcloudsAbstractcontainerName - name of container to createContentAddressableStorageAlreadyExistException - Thrown when creating a container while it (containerName)
already existspublic int getMaxResults()
getMaxResults in class ContentAddressableStorageJcloudsAbstractpublic MetadatasObject getObjectMetadatas(String containerName, String objectId) throws ContentAddressableStorageException
ContentAddressableStoragegetObjectMetadatas in interface ContentAddressableStoragegetObjectMetadatas in class ContentAddressableStorageJcloudsAbstractcontainerName - the container nameobjectId - the objectId to checkContentAddressableStorageException - Thrown when get action failed due some other failureCopyright © 2018 Vitam. All rights reserved.