public class S3TierObjectStore extends Object implements TierObjectStore
TierObjectStore.Backend, TierObjectStore.DataTypePathPrefix, TierObjectStore.FileType, TierObjectStore.ObjectMetadata, TierObjectStore.ObjectStoreMetadata, TierObjectStore.OpaqueData, TierObjectStore.TierStateRestoreSnapshotMetadata| Constructor and Description |
|---|
S3TierObjectStore(S3TierObjectStoreConfig config) |
| Modifier and Type | Method and Description |
|---|---|
static com.amazonaws.services.s3.AmazonS3 |
client(S3TierObjectStoreConfig config) |
void |
close() |
void |
deleteSegment(TierObjectStore.ObjectMetadata objectMetadata) |
TierObjectStore.Backend |
getBackend() |
TierObjectStoreResponse |
getObject(TierObjectStore.ObjectStoreMetadata objectMetadata,
TierObjectStore.FileType fileType,
Integer byteOffsetStart,
Integer byteOffsetEnd) |
TierObjectStore.OpaqueData |
prepPutSegment() |
void |
putObject(TierObjectStore.ObjectStoreMetadata objectMetadata,
File file,
TierObjectStore.FileType fileType) |
void |
putSegment(TierObjectStore.ObjectMetadata objectMetadata,
File segmentData,
File offsetIndexData,
File timestampIndexData,
Optional<File> producerStateSnapshotData,
Optional<ByteBuffer> transactionIndexData,
Optional<ByteBuffer> epochState) |
static String |
validateAndGetS3RegionName(String s3Region) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetObject, getObjectpublic S3TierObjectStore(S3TierObjectStoreConfig config)
public TierObjectStore.Backend getBackend()
getBackend in interface TierObjectStorepublic TierObjectStoreResponse getObject(TierObjectStore.ObjectStoreMetadata objectMetadata, TierObjectStore.FileType fileType, Integer byteOffsetStart, Integer byteOffsetEnd)
getObject in interface TierObjectStorepublic TierObjectStore.OpaqueData prepPutSegment() throws TierObjectStoreRetriableException, IOException
prepPutSegment in interface TierObjectStoreTierObjectStoreRetriableExceptionIOExceptionpublic void putObject(TierObjectStore.ObjectStoreMetadata objectMetadata, File file, TierObjectStore.FileType fileType)
putObject in interface TierObjectStorepublic void putSegment(TierObjectStore.ObjectMetadata objectMetadata, File segmentData, File offsetIndexData, File timestampIndexData, Optional<File> producerStateSnapshotData, Optional<ByteBuffer> transactionIndexData, Optional<ByteBuffer> epochState)
putSegment in interface TierObjectStorepublic void deleteSegment(TierObjectStore.ObjectMetadata objectMetadata)
deleteSegment in interface TierObjectStorepublic void close()
close in interface TierObjectStorepublic static com.amazonaws.services.s3.AmazonS3 client(S3TierObjectStoreConfig config) throws TierObjectStoreFatalException
TierObjectStoreFatalException