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,
boolean noCache)
get metadata of the object
|
deleteObject, getObject, getObjectDigest, isExistingContainer, isExistingObject, listContainer, listContainerNext, putObjectcacheExistsContainer, computeObjectDigest, disableContainerCaching, getConfiguration, isExistingContainerInCachepublic 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)
ContentAddressableStoragecreateContainer in interface ContentAddressableStoragecreateContainer in class ContentAddressableStorageJcloudsAbstractcontainerName - name of container to createpublic int getMaxResults()
public MetadatasObject getObjectMetadatas(String containerName, String objectId, boolean noCache) throws ContentAddressableStorageException
ContentAddressableStoragecontainerName - the container nameobjectId - the objectId to checkContentAddressableStorageException - Thrown when get action failed due some other failureCopyright © 2020 Vitam. All rights reserved.