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, waitcountObjects, createContainer, deleteObject, getContainerInformation, getObject, getObjectAsync, getObjectInformation, getObjectMetadatas, isExistingContainer, isExistingObject, listContainer, listContainerNext, putObjectclosepublic static final int LISTING_MAX_RESULTS
public String computeObjectDigest(String containerName, String objectName, DigestType algo) throws ContentAddressableStorageException
ContentAddressableStoragecomputeObjectDigest in interface ContentAddressableStoragecontainerName - 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
ContentAddressableStoragecheckObject in interface ContentAddressableStoragecontainerName - 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.