Class MinioObjectStorageService
java.lang.Object
org.deltafi.common.storage.s3.minio.MinioObjectStorageService
- All Implemented Interfaces:
ObjectStorageService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.minio.MinioClientprotected final MinioProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetObject(ObjectReference objectReference) putObject(ObjectReference objectReference, InputStream inputStream) voidputObjects(String bucket, Map<ObjectReference, InputStream> inputStreamMap) Writes the InputStream to object storage for each ObjectReferencevoidremoveObject(ObjectReference objectReference) booleanremoveObjects(String bucket, List<String> objectNames) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.deltafi.common.storage.s3.ObjectStorageService
getObjectAsByteArray, putObjectAsByteArray
-
Field Details
-
minioClient
protected final io.minio.MinioClient minioClient -
minioProperties
-
-
Constructor Details
-
MinioObjectStorageService
public MinioObjectStorageService()
-
-
Method Details
-
getObject
- Specified by:
getObjectin interfaceObjectStorageService- Throws:
ObjectStorageException
-
putObject
public ObjectReference putObject(ObjectReference objectReference, InputStream inputStream) throws ObjectStorageException - Specified by:
putObjectin interfaceObjectStorageService- Throws:
ObjectStorageException
-
putObjects
public void putObjects(String bucket, Map<ObjectReference, InputStream> inputStreamMap) throws ObjectStorageExceptionDescription copied from interface:ObjectStorageServiceWrites the InputStream to object storage for each ObjectReference- Specified by:
putObjectsin interfaceObjectStorageService- Parameters:
bucket- where each ObjectReference should be storedinputStreamMap- map of the object references to the content input stream- Throws:
ObjectStorageException- when storing the objects fails
-
removeObject
- Specified by:
removeObjectin interfaceObjectStorageService
-
removeObjects
- Specified by:
removeObjectsin interfaceObjectStorageService
-