public abstract class ContentAddressableStorageJcloudsAbstract extends ContentAddressableStorageAbstract
| Modifier and Type | Field and Description |
|---|---|
protected org.jclouds.blobstore.BlobStoreContext |
context |
LISTING_MAX_RESULTS| Constructor and Description |
|---|
ContentAddressableStorageJcloudsAbstract(StorageConfiguration configuration)
creates a new ContentAddressableStorageImpl with a storage configuration
param
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
closeContext()
Close context according to implementation (http client not closed)
|
void |
createContainer(String containerName)
Creates a container
|
void |
deleteObject(String containerName,
String objectName)
Deletes a object representing the data at location containerName/objectName
|
abstract ContainerInformation |
getContainerInformation(String containerName)
Get container information like capacity
|
abstract org.jclouds.blobstore.BlobStoreContext |
getContext(StorageConfiguration configuration)
enables the connection to a storage service with the param provided
|
ObjectContent |
getObject(String containerName,
String objectName)
Retrieves an object representing the data at location containerName/objectName
|
String |
getObjectDigest(String containerName,
String objectName,
DigestType digestType,
boolean noCache)
compute Object Digest using a defined algorithm
|
boolean |
isExistingContainer(String containerName)
Determines if a container exists
|
boolean |
isExistingObject(String containerName,
String objectName)
Determines if an object exists
|
VitamPageSet<? extends VitamStorageMetadata> |
listContainer(String containerName)
List container (create cursor)
|
VitamPageSet<? extends VitamStorageMetadata> |
listContainerNext(String containerName,
String nextMarker)
List container (next on cursor)
|
String |
putObject(String containerName,
String objectName,
InputStream stream,
DigestType digestType,
Long size)
Adds an object representing the data at location containerName/objectName
|
cacheExistsContainer, computeObjectDigest, disableContainerCaching, getConfiguration, isExistingContainerInCacheclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateReadOrderRequest, getObjectMetadata, removeReadOrderRequestclosepublic ContentAddressableStorageJcloudsAbstract(StorageConfiguration configuration)
configuration - StorageConfigurationpublic abstract org.jclouds.blobstore.BlobStoreContext getContext(StorageConfiguration configuration)
configuration - the storage configurationpublic abstract void closeContext()
public void createContainer(String containerName)
ContentAddressableStoragecontainerName - name of container to createpublic boolean isExistingContainer(String containerName)
ContentAddressableStoragecontainerName - name of containerpublic String putObject(String containerName, String objectName, InputStream stream, DigestType digestType, Long size) throws ContentAddressableStorageException
ContentAddressableStoragecontainerName - container to place the object.objectName - fully qualified object name relative to the container.stream - the datadigestType - parameter to compute an hash.size - size off the input streamContentAddressableStorageNotFoundException - Thrown when the container cannot be located.ContentAddressableStorageException - Thrown when put action failed due some other failureContentAddressableStorageAlreadyExistException - Thrown when object creating existspublic String getObjectDigest(String containerName, String objectName, DigestType digestType, boolean noCache) throws ContentAddressableStorageException
ContentAddressableStoragecontainerName - container where this exists.objectName - fully qualified name relative to the container.digestType - Digest algonoCache - forces full digest computationContentAddressableStorageNotFoundException - Thrown when the container or the object cannot be locatedContentAddressableStorageServerException - Thrown when internal server error happensContentAddressableStorageException - Thrown when put action failed due some other failurepublic ObjectContent getObject(String containerName, String objectName) throws ContentAddressableStorageException
ContentAddressableStoragecontainerName - container where this exists.objectName - 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 deleteObject(String containerName, String objectName) throws ContentAddressableStorageNotFoundException
ContentAddressableStoragecontainerName - container where this exists.objectName - fully qualified name relative to the container.ContentAddressableStorageNotFoundException - Thrown when the container cannot be located or the blob cannot
be located in the container.public boolean isExistingObject(String containerName, String objectName)
ContentAddressableStoragecontainerName - container where the object residesobjectName - fully qualified name relative to the container.public abstract ContainerInformation getContainerInformation(String containerName) throws ContentAddressableStorageNotFoundException
ContentAddressableStoragecontainerName - the container nameContentAddressableStorageNotFoundException - Thrown when the container cannot be located.public VitamPageSet<? extends VitamStorageMetadata> listContainer(String containerName) throws ContentAddressableStorageNotFoundException
ContentAddressableStoragecontainerName - the container nameContentAddressableStorageNotFoundException - Thrown when the container cannot be located.public VitamPageSet<? extends VitamStorageMetadata> listContainerNext(String containerName, String nextMarker) throws ContentAddressableStorageNotFoundException
ContentAddressableStoragecontainerName - the container namenextMarker - the last id of the list to get nextContentAddressableStorageNotFoundException - Thrown when the container cannot be located.Copyright © 2019 Vitam. All rights reserved.