Class FileSystem
java.lang.Object
fr.gouv.vitam.common.storage.cas.container.api.ContentAddressableStorageAbstract
fr.gouv.vitam.common.storage.cas.container.api.ContentAddressableStorageJcloudsAbstract
fr.gouv.vitam.common.storage.filesystem.FileSystem
- All Implemented Interfaces:
VitamAutoCloseable
,ContentAddressableStorage
,AutoCloseable
FileSystemMock implements a Content Addressable Storage that stores objects on the file system.
-
Field Summary
Fields inherited from class fr.gouv.vitam.common.storage.cas.container.api.ContentAddressableStorageJcloudsAbstract
context
Fields inherited from class fr.gouv.vitam.common.storage.cas.container.api.ContentAddressableStorageAbstract
LISTING_MAX_RESULTS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
Close context according to implementation (http client not closed)getContainerInformation
(String containerName) Get container information like capacityorg.jclouds.blobstore.BlobStoreContext
getContext
(StorageConfiguration configuration) enables the connection to a storage service with the param providedgetObjectMetadata
(String containerName, String objectId, boolean noCache) get metadata of the objectMethods inherited from class fr.gouv.vitam.common.storage.cas.container.api.ContentAddressableStorageJcloudsAbstract
checkObjectDigestAndStoreDigest, createContainer, deleteObject, getObject, getObjectDigest, isExistingContainer, isExistingObject, listContainer, writeObject
Methods inherited from class fr.gouv.vitam.common.storage.cas.container.api.ContentAddressableStorageAbstract
cacheExistsContainer, computeObjectDigest, disableContainerCaching, getConfiguration, isExistingContainerInCache
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface fr.gouv.vitam.common.storage.cas.container.api.ContentAddressableStorage
checkAccessRequestStatuses, checkObjectAvailability, createAccessRequest, putObject, removeAccessRequest
-
Constructor Details
-
FileSystem
- Parameters:
configuration
- to associate with the FileSystem
-
-
Method Details
-
closeContext
public void closeContext()Description copied from class:ContentAddressableStorageJcloudsAbstract
Close context according to implementation (http client not closed)- Specified by:
closeContext
in classContentAddressableStorageJcloudsAbstract
-
getContainerInformation
public ContainerInformation getContainerInformation(String containerName) throws ContentAddressableStorageNotFoundException Description copied from interface:ContentAddressableStorage
Get container information like capacity- Specified by:
getContainerInformation
in interfaceContentAddressableStorage
- Specified by:
getContainerInformation
in classContentAddressableStorageJcloudsAbstract
- Parameters:
containerName
- the container name- Returns:
- container information like usableSpace
- Throws:
ContentAddressableStorageNotFoundException
- Thrown when the container cannot be located.
-
getContext
Description copied from class:ContentAddressableStorageJcloudsAbstract
enables the connection to a storage service with the param provided- Specified by:
getContext
in classContentAddressableStorageJcloudsAbstract
- Parameters:
configuration
- the storage configuration- Returns:
- BlobStoreContext
-
getObjectMetadata
public MetadatasObject getObjectMetadata(String containerName, String objectId, boolean noCache) throws ContentAddressableStorageException Description copied from interface:ContentAddressableStorage
get metadata of the object- Parameters:
containerName
- the container nameobjectId
- the objectId to check- Returns:
- MetadatasObjectResult
- Throws:
ContentAddressableStorageException
- Thrown when get action failed due some other failure
-
close
public void close()
-