Class S3Directory
java.lang.Object
org.apache.jackrabbit.oak.segment.aws.S3Directory
-
Constructor Summary
ConstructorsConstructorDescriptionS3Directory
(com.amazonaws.services.s3.AmazonS3 s3, String bucketName, String rootDirectory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyObject
(S3Directory from, String fromKey) boolean
boolean
deleteObjects
(List<com.amazonaws.services.s3.model.DeleteObjectsRequest.KeyVersion> keys) boolean
doesObjectExist
(String name) void
com.amazonaws.services.s3.model.S3Object
com.amazonaws.services.s3.model.ObjectMetadata
getObjectMetadata
(String key) getPath()
List<com.amazonaws.services.s3.model.S3ObjectSummary>
listObjects
(String prefix) void
putObject
(String name, InputStream input) byte[]
readObject
(String key) readObjectToBuffer
(String name, boolean offHeap) void
readObjectToBuffer
(String name, Buffer buffer) withDirectory
(String childDirectory) void
writeObject
(String name, byte[] data)
-
Constructor Details
-
S3Directory
-
-
Method Details
-
withDirectory
-
ensureBucket
- Throws:
IOException
-
getConfig
-
getPath
-
doesObjectExist
-
getObject
- Throws:
IOException
-
getObjectMetadata
-
readObjectToBuffer
- Throws:
IOException
-
readObjectToBuffer
- Throws:
IOException
-
readObject
- Throws:
IOException
-
writeObject
- Throws:
IOException
-
putObject
- Throws:
IOException
-
copyObject
- Throws:
IOException
-
deleteObjects
public boolean deleteObjects(List<com.amazonaws.services.s3.model.DeleteObjectsRequest.KeyVersion> keys) -
deleteAllObjects
public boolean deleteAllObjects() -
listPrefixes
- Throws:
IOException
-
listObjects
public List<com.amazonaws.services.s3.model.S3ObjectSummary> listObjects(String prefix) throws IOException - Throws:
IOException
-