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
|
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, putObject
cacheExistsContainer, computeObjectDigest, disableContainerCaching, getConfiguration, isExistingContainerInCache
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)
ContentAddressableStorage
createContainer
in interface ContentAddressableStorage
createContainer
in class ContentAddressableStorageJcloudsAbstract
containerName
- name of container to createpublic String createReadOrderRequest(String containerName, List<String> objectsIds) throws ContentAddressableStorageNotFoundException, ContentAddressableStorageException
ContentAddressableStorage
containerName
- 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
ContentAddressableStorage
readRequestID
- the read request ID.ContentAddressableStorageServerException
public int getMaxResults()
public MetadatasObject getObjectMetadata(String containerName, String objectId, boolean noCache) throws ContentAddressableStorageException
ContentAddressableStorage
containerName
- the container nameobjectId
- the objectId to checkContentAddressableStorageException
- Thrown when get action failed due some other failureCopyright © 2019 Vitam. All rights reserved.