Class ContentAddressableStorageAbstract
java.lang.Object
fr.gouv.vitam.common.storage.cas.container.api.ContentAddressableStorageAbstract
- All Implemented Interfaces:
- VitamAutoCloseable,- ContentAddressableStorage,- AutoCloseable
- Direct Known Subclasses:
- AmazonS3V1,- ContentAddressableStorageJcloudsAbstract,- HashFileSystem,- Swift
public abstract class ContentAddressableStorageAbstract
extends Object
implements ContentAddressableStorage
Abstract class of CAS that contains common methos
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intMax result for listing option TODO: have to be configurable ?
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedContentAddressableStorageAbstract(StorageConfiguration configuration) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcacheExistsContainer(String containerName, boolean exists) This handle cache already existing container Prevent handling an i/o check container exists Do only memory check if the container is already existsprotected StringcomputeObjectDigest(String containerName, String objectName, DigestType algo) computeObjectDigestAndSize(String containerName, String objectName, DigestType algo) static voidprotected booleanisExistingContainerInCache(String containerName) Determines if a container exists in cacheMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.gouv.vitam.common.storage.cas.container.api.ContentAddressableStoragecheckAccessRequestStatuses, checkObjectAvailability, checkObjectDigestAndStoreDigest, createAccessRequest, createContainer, deleteObject, getContainerInformation, getObject, getObjectDigest, getObjectMetadata, isExistingContainer, isExistingObject, listContainer, putObject, removeAccessRequest, writeObjectMethods inherited from interface fr.gouv.vitam.common.model.VitamAutoCloseableclose
- 
Field Details- 
LISTING_MAX_RESULTSpublic static final int LISTING_MAX_RESULTSMax result for listing option TODO: have to be configurable ?- See Also:
 
 
- 
- 
Constructor Details- 
ContentAddressableStorageAbstract
 
- 
- 
Method Details- 
getConfiguration
- 
computeObjectDigestprotected String computeObjectDigest(String containerName, String objectName, DigestType algo) throws ContentAddressableStorageException 
- 
computeObjectDigestAndSizeprotected org.apache.commons.lang3.tuple.Pair<String,Long> computeObjectDigestAndSize(String containerName, String objectName, DigestType algo) throws ContentAddressableStorageException 
- 
isExistingContainerInCacheDetermines if a container exists in cache- Parameters:
- containerName- name of container
- Returns:
- boolean type
- Throws:
- ContentAddressableStorageServerException- Thrown when internal server error happens
 
- 
cacheExistsContainerThis handle cache already existing container Prevent handling an i/o check container exists Do only memory check if the container is already exists- Parameters:
- containerName-
- exists-
 
- 
disableContainerCachingpublic static void disableContainerCaching()
 
-