Class MinioObjectStorageService
- java.lang.Object
-
- org.deltafi.common.storage.s3.minio.MinioObjectStorageService
-
- All Implemented Interfaces:
ObjectStorageService
public class MinioObjectStorageService extends java.lang.Object implements ObjectStorageService
-
-
Field Summary
Fields Modifier and Type Field Description protected io.minio.MinioClientminioClientprotected MinioPropertiesminioProperties
-
Constructor Summary
Constructors Constructor Description MinioObjectStorageService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetObject(ObjectReference objectReference)ObjectReferenceputObject(ObjectReference objectReference, java.io.InputStream inputStream)voidremoveObject(ObjectReference objectReference)booleanremoveObjects(java.lang.String bucket, java.util.List<java.lang.String> objectNames)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.deltafi.common.storage.s3.ObjectStorageService
getObjectAsByteArray, putObjectAsByteArray
-
-
-
-
Field Detail
-
minioClient
protected final io.minio.MinioClient minioClient
-
minioProperties
protected final MinioProperties minioProperties
-
-
Method Detail
-
getObject
public java.io.InputStream getObject(ObjectReference objectReference) throws ObjectStorageException
- Specified by:
getObjectin interfaceObjectStorageService- Throws:
ObjectStorageException
-
putObject
public ObjectReference putObject(ObjectReference objectReference, java.io.InputStream inputStream) throws ObjectStorageException
- Specified by:
putObjectin interfaceObjectStorageService- Throws:
ObjectStorageException
-
removeObject
public void removeObject(ObjectReference objectReference)
- Specified by:
removeObjectin interfaceObjectStorageService
-
removeObjects
public boolean removeObjects(java.lang.String bucket, java.util.List<java.lang.String> objectNames)- Specified by:
removeObjectsin interfaceObjectStorageService
-
-