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
|
String |
createReadOrderRequest(String containerName,
List<String> objectsIds)
Create read order (asynchronous read from tape to local FS) for the given objects representing the data at location containerName/objectId.
|
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 |
getObjectMetadata(String containerName,
String objectId,
boolean noCache)
get metadata of the object
|
void |
removeReadOrderRequest(String readRequestID)
Purge all read request id to cleanup local FS
|
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 String createReadOrderRequest(String containerName, List<String> objectsIds) throws ContentAddressableStorageNotFoundException, ContentAddressableStorageException
ContentAddressableStoragecontainerName - container where this exists.objectsIds - list of the fully qualified name relative to the container.ContentAddressableStorageNotFoundException - Thrown when the container cannot be located.ContentAddressableStorageException - Thrown when get action failed due some other failureContentAddressableStorageAlreadyExistException - Thrown when object creating existspublic void removeReadOrderRequest(String readRequestID) throws ContentAddressableStorageServerException
ContentAddressableStoragereadRequestID - the read request ID.ContentAddressableStorageServerExceptionpublic int getMaxResults()
public MetadatasObject getObjectMetadata(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 © 2019 Vitam. All rights reserved.