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 from
ObjectStorageObjectServiceImpl
openstack4j lib (apache2 license)-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
org.openstack4j.openstack.internal.BaseOpenStackService.Invocation<R extends Object>
-
Constructor Summary
ConstructorDescriptionVitamSwiftObjectStorageService
(Supplier<org.openstack4j.api.OSClient> osClientFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteFullObject
(String containerName, String objectName, List<String> objectNameSegments, Map<String, String> headers) Optional<org.openstack4j.model.storage.object.SwiftObject>
List<? extends org.openstack4j.model.storage.object.SwiftObject>
list
(String containerName, org.openstack4j.model.storage.object.options.ObjectListOptions options, Map<String, String> headers) void
void
put
(String containerName, 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, Map<String, String> headers) Methods inherited from class org.openstack4j.openstack.storage.object.internal.BaseObjectStorageService
isResponseSuccess, isResponseSuccess
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
Constructor Details
-
VitamSwiftObjectStorageService
-
-
Method Details
-
list
-
getObjectInformation
-
download
public ObjectContent download(String containerName, String objectName, Map<String, String> headers) throws ContentAddressableStorageException -
put
public void put(String containerName, String name, org.openstack4j.model.common.Payload<?> payload) throws ContentAddressableStorageException -
put
public void put(String containerName, String objectName, org.openstack4j.model.common.Payload<?> payload, org.openstack4j.model.storage.object.options.ObjectPutOptions options) throws ContentAddressableStorageException -
deleteFullObject
-
getMetadata
-
updateMetadata
public void updateMetadata(org.openstack4j.model.storage.object.options.ObjectLocation location, Map<String, String> headers) throws ContentAddressableStorageException
-