public abstract class ContentAddressableStorageAbstract extends Object implements ContentAddressableStorage
Modifier and Type | Field and Description |
---|---|
static int |
LISTING_MAX_RESULTS
Max result for listing option TODO: have to be configurable ?
|
Constructor and Description |
---|
ContentAddressableStorageAbstract() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkObject(String containerName,
String objectId,
String digest,
DigestType digestAlgorithm)
Check object
|
String |
computeObjectDigest(String containerName,
String objectName,
DigestType algo)
compute Object Digest using a defined algorithm
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countObjects, createContainer, deleteObject, getContainerInformation, getObject, getObjectAsync, getObjectInformation, getObjectMetadatas, isExistingContainer, isExistingObject, listContainer, listContainerNext, putObject
close
public static final int LISTING_MAX_RESULTS
public String computeObjectDigest(String containerName, String objectName, DigestType algo) throws ContentAddressableStorageException
ContentAddressableStorage
computeObjectDigest
in interface ContentAddressableStorage
containerName
- container where this exists.objectName
- fully qualified name relative to the container.algo
- Digest algoContentAddressableStorageNotFoundException
- 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 boolean checkObject(String containerName, String objectId, String digest, DigestType digestAlgorithm) throws ContentAddressableStorageException
ContentAddressableStorage
checkObject
in interface ContentAddressableStorage
containerName
- the container nameobjectId
- the objectId to checkdigest
- the digest to be compared withdigestAlgorithm
- the digest AlgorithmContentAddressableStorageException
- Thrown when check action failed due some other failureCopyright © 2018 Vitam. All rights reserved.