public class TierObjectStoreMetricsEnabled extends Object implements TierObjectStore
TierObjectStore.Backend, TierObjectStore.BackupObjectsListMetadata, TierObjectStore.DataTypePathPrefix, TierObjectStore.DurabilityAuditsOffsetMapMetadata, TierObjectStore.FileType, TierObjectStore.HealthMetadata, TierObjectStore.KeyAndVersion, TierObjectStore.LifecycleManagerStateMetadata, TierObjectStore.ObjectMetadata, TierObjectStore.ObjectStoreMetadata, TierObjectStore.OpaqueData, TierObjectStore.TierPartitionStateSnapshotMetadata, TierObjectStore.TierStateRestoreSnapshotMetadata, TierObjectStore.TierTopicSnapshotMetadata
Constructor and Description |
---|
TierObjectStoreMetricsEnabled(TierObjectStore inner,
org.apache.kafka.common.metrics.Metrics metrics,
org.apache.kafka.common.utils.Time time) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getObject, getObject, getObject
public TierObjectStoreMetricsEnabled(TierObjectStore inner, org.apache.kafka.common.metrics.Metrics metrics, org.apache.kafka.common.utils.Time time)
public TierObjectStore.Backend getBackend()
getBackend
in interface TierObjectStore
public Map<String,List<VersionInformation>> listObject(String keyPrefix, boolean getVersionInfo)
listObject
in interface TierObjectStore
public TierObjectStoreResponse getObject(TierObjectStore.ObjectStoreMetadata objectMetadata, TierObjectStore.FileType objectFileType, Integer byteOffset, Integer byteOffsetEnd, VersionInformation versionInformation) throws IOException
getObject
in interface TierObjectStore
IOException
public TierObjectStore.OpaqueData prepPutSegment() throws TierObjectStoreRetriableException, IOException
prepPutSegment
in interface TierObjectStore
TierObjectStoreRetriableException
IOException
public void putObject(TierObjectStore.ObjectStoreMetadata objectMetadata, File file, TierObjectStore.FileType fileType) throws TierObjectStoreRetriableException, IOException
putObject
in interface TierObjectStore
TierObjectStoreRetriableException
IOException
public void putBuffer(TierObjectStore.ObjectStoreMetadata objectMetadata, ByteBuffer buffer, TierObjectStore.FileType fileType) throws TierObjectStoreRetriableException, IOException
putBuffer
in interface TierObjectStore
TierObjectStoreRetriableException
IOException
public void restoreObjectByCopy(TierObjectStore.ObjectMetadata objectMetadata, String key, VersionInformation lastLiveVersion)
TierObjectStore
restoreObjectByCopy
in interface TierObjectStore
public void putInMemorySegment(TierObjectStore.ObjectMetadata objectMetadata, File segmentData, File offsetIndexData, File timestampIndexData, Optional<ByteBuffer> producerStateSnapshotData, Optional<ByteBuffer> transactionIndexData, Optional<ByteBuffer> epochState) throws TierObjectStoreRetriableException, IOException
putInMemorySegment
in interface TierObjectStore
TierObjectStoreRetriableException
IOException
public void putSegment(TierObjectStore.ObjectMetadata objectMetadata, File segmentData, File offsetIndexData, File timestampIndexData, Optional<File> producerStateSnapshotData, Optional<ByteBuffer> transactionIndexData, Optional<ByteBuffer> epochState) throws TierObjectStoreRetriableException, IOException
putSegment
in interface TierObjectStore
TierObjectStoreRetriableException
IOException
public void deleteSegment(TierObjectStore.ObjectMetadata objectMetadata) throws IOException
deleteSegment
in interface TierObjectStore
IOException
public BucketHealthResult checkBucketHealth()
checkBucketHealth
in interface TierObjectStore
public void deleteVersions(List<TierObjectStore.KeyAndVersion> keys)
deleteVersions
in interface TierObjectStore
public TierObjectAttribute objectExists(TierObjectStore.ObjectMetadata objectMetadata, TierObjectStore.FileType type) throws TierObjectStoreRetriableException, IOException
objectExists
in interface TierObjectStore
TierObjectStoreRetriableException
IOException
public void close()
close
in interface TierObjectStore