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 Details

    • leaderReplica

      int leaderReplica(String topic, int partition)
      The brokerId corresponding leader of the given replica.
    • tierPartitionStatus

      TierPartitionStateResponse tierPartitionStatus(String topic, int partition)
      The tierPartitionStatus corresponding to this broker.
    • ftpsFile

      Optional<File> ftpsFile(String topic, int partition)
      The partition's ftps file.
    • setFenceTierTopicPartition

      TierRecordMetadataResponse setFenceTierTopicPartition(String topic, int partition)
      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

      TierRecordMetadataResponse setUnfreezeLogStartOffset(String topic, int partition)
      Unfreeze log start offset.
    • validateLogRange

      int validateLogRange(String topic, int partition, long startOffset, long endOffset)
      Validate if the log view spans across given start and end offset.
    • preChecksForRestore

      int preChecksForRestore(String topic, int partition)
      Validates if restore can be started on the given partition