public class FileSystem extends ContentAddressableStorageJcloudsAbstract
context
LISTING_MAX_RESULTS
Constructor and Description |
---|
FileSystem(StorageConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeContext()
Close context according to implementation (http client not closed)
|
ContainerInformation |
getContainerInformation(String containerName)
Get container information like capacity
|
org.jclouds.blobstore.BlobStoreContext |
getContext(StorageConfiguration configuration)
enables the connection to a storage service with the param provided
|
MetadatasObject |
getObjectMetadatas(String containerName,
String objectId)
get metadata of the object
|
countObjects, createContainer, deleteObject, getConfiguration, getMaxResults, getObject, getObjectAsync, getObjectInformation, isExistingContainer, isExistingObject, listContainer, listContainerNext, putObject, setConfiguration
checkObject, computeObjectDigest
public FileSystem(StorageConfiguration configuration)
configuration
- to associate with the FileSystempublic void closeContext()
ContentAddressableStorageJcloudsAbstract
closeContext
in class ContentAddressableStorageJcloudsAbstract
public ContainerInformation getContainerInformation(String containerName) throws ContentAddressableStorageNotFoundException
ContentAddressableStorage
getContainerInformation
in interface ContentAddressableStorage
getContainerInformation
in class ContentAddressableStorageJcloudsAbstract
containerName
- the container nameContentAddressableStorageNotFoundException
- Thrown when the container cannot be located.public org.jclouds.blobstore.BlobStoreContext getContext(StorageConfiguration configuration)
ContentAddressableStorageJcloudsAbstract
getContext
in class ContentAddressableStorageJcloudsAbstract
configuration
- the storage configurationpublic MetadatasObject getObjectMetadatas(String containerName, String objectId) throws IOException, ContentAddressableStorageException
ContentAddressableStorage
getObjectMetadatas
in interface ContentAddressableStorage
getObjectMetadatas
in class ContentAddressableStorageJcloudsAbstract
containerName
- the container nameobjectId
- the objectId to checkIOException
- if an IOException is encountered with filesContentAddressableStorageException
- Thrown when get action failed due some other failurepublic void close()
Copyright © 2018 Vitam. All rights reserved.