Class VitamSwiftObjectStorageService
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.storage.object.internal.BaseObjectStorageService
-
- fr.gouv.vitam.common.storage.swift.VitamSwiftObjectStorageService
-
@NotThreadSafe public class VitamSwiftObjectStorageService extends org.openstack4j.openstack.storage.object.internal.BaseObjectStorageService
Custom Object Storage service alternative for openstack4j Adapted fromObjectStorageObjectServiceImpl
openstack4j lib (apache2 license)
-
-
Constructor Summary
Constructors Constructor Description VitamSwiftObjectStorageService(java.util.function.Supplier<org.openstack4j.api.OSClient> osClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteFullObject(java.lang.String containerName, java.lang.String objectName, java.util.List<java.lang.String> objectNameSegments, java.util.Map<java.lang.String,java.lang.String> headers)
ObjectContent
download(java.lang.String containerName, java.lang.String objectName, java.util.Map<java.lang.String,java.lang.String> headers)
java.util.Map<java.lang.String,java.lang.String>
getMetadata(java.lang.String containerName, java.lang.String objectName, java.util.Map<java.lang.String,java.lang.String> headers)
java.util.Optional<org.openstack4j.model.storage.object.SwiftObject>
getObjectInformation(java.lang.String containerName, java.lang.String objectName, java.util.Map<java.lang.String,java.lang.String> headers)
java.util.List<? extends org.openstack4j.model.storage.object.SwiftObject>
list(java.lang.String containerName, org.openstack4j.model.storage.object.options.ObjectListOptions options, java.util.Map<java.lang.String,java.lang.String> headers)
void
put(java.lang.String containerName, java.lang.String name, org.openstack4j.model.common.Payload<?> payload)
void
put(java.lang.String containerName, java.lang.String objectName, org.openstack4j.model.common.Payload<?> payload, org.openstack4j.model.storage.object.options.ObjectPutOptions options)
void
updateMetadata(org.openstack4j.model.storage.object.options.ObjectLocation location, java.util.Map<java.lang.String,java.lang.String> headers)
-
Methods inherited from class org.openstack4j.openstack.storage.object.internal.BaseObjectStorageService
isResponseSuccess, isResponseSuccess
-
-
-
-
Method Detail
-
list
public java.util.List<? extends org.openstack4j.model.storage.object.SwiftObject> list(java.lang.String containerName, org.openstack4j.model.storage.object.options.ObjectListOptions options, java.util.Map<java.lang.String,java.lang.String> headers) throws ContentAddressableStorageException
-
getObjectInformation
public java.util.Optional<org.openstack4j.model.storage.object.SwiftObject> getObjectInformation(java.lang.String containerName, java.lang.String objectName, java.util.Map<java.lang.String,java.lang.String> headers) throws ContentAddressableStorageException
-
download
public ObjectContent download(java.lang.String containerName, java.lang.String objectName, java.util.Map<java.lang.String,java.lang.String> headers) throws ContentAddressableStorageException
-
put
public void put(java.lang.String containerName, java.lang.String name, org.openstack4j.model.common.Payload<?> payload) throws ContentAddressableStorageException
-
put
public void put(java.lang.String containerName, java.lang.String objectName, org.openstack4j.model.common.Payload<?> payload, org.openstack4j.model.storage.object.options.ObjectPutOptions options) throws ContentAddressableStorageException
-
deleteFullObject
public void deleteFullObject(java.lang.String containerName, java.lang.String objectName, java.util.List<java.lang.String> objectNameSegments, java.util.Map<java.lang.String,java.lang.String> headers) throws ContentAddressableStorageException
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata(java.lang.String containerName, java.lang.String objectName, java.util.Map<java.lang.String,java.lang.String> headers) throws ContentAddressableStorageException
-
updateMetadata
public void updateMetadata(org.openstack4j.model.storage.object.options.ObjectLocation location, java.util.Map<java.lang.String,java.lang.String> headers) throws ContentAddressableStorageException
-
-