Package io.confluent.rest
Interface KafkaRestorePartitionHandle
public interface KafkaRestorePartitionHandle
This interface is to be used by the InternalRestServer to allow the restore service to communicate with
the broker to query relevant kafka state details.
-
Method Summary
Modifier and TypeMethodDescriptionThe partition's ftps file.intleaderReplica(String topic, int partition) The brokerId corresponding leader of the given replica.intpreChecksForRestore(String topic, int partition) Validates if restore can be started on the given partitionsetFenceTierTopicPartition(String topic, int partition) Fence tier partition state.setForceRestoreTierPartition(String topic, int partition, long startOffset, long endOffset, String contentHash, byte checksumAlgorithm) Force restore tier partition state.setUnfreezeLogStartOffset(String topic, int partition) Unfreeze log start offset.tierPartitionStatus(String topic, int partition) The tierPartitionStatus corresponding to this broker.intvalidateLogRange(String topic, int partition, long startOffset, long endOffset) Validate if the log view spans across given start and end offset.
-
Method Details
-
leaderReplica
The brokerId corresponding leader of the given replica. -
tierPartitionStatus
The tierPartitionStatus corresponding to this broker. -
ftpsFile
The partition's ftps file. -
setFenceTierTopicPartition
Fence tier partition state. -
setForceRestoreTierPartition
TierRecordMetadataResponse setForceRestoreTierPartition(String topic, int partition, long startOffset, long endOffset, String contentHash, byte checksumAlgorithm) Force restore tier partition state. -
setUnfreezeLogStartOffset
Unfreeze log start offset. -
validateLogRange
Validate if the log view spans across given start and end offset. -
preChecksForRestore
Validates if restore can be started on the given partition
-