Interface BeginShutdownBrokerHandle


public interface BeginShutdownBrokerHandle
This interface is to be used by the InternalRestServer to allow the operator to communicate with the broker and initiate a controlled shutdown dependent on under replicated partitions and the current controller.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    beginShutdown(long brokerEpoch)
    Start the shutdown process for this broker on the provided broker epoch.
    long
    The brokerEpoch corresponding to this broker.
    long
    The brokerId corresponding to this broker.
    The brokerId of the current controller.
    scala.Tuple2<Boolean,String>
    The value is true when the broker has no URPs and no imbalanced partition on this broker if it's not demoted.
    long
    The number of under replicated partitions on this broker.
  • Method Details

    • brokerId

      long brokerId()
      The brokerId corresponding to this broker.
    • brokerEpoch

      long brokerEpoch()
      The brokerEpoch corresponding to this broker.
    • controllerId

      Integer controllerId()
      The brokerId of the current controller. This can be null if there is no current controller known.
    • underReplicatedPartitions

      long underReplicatedPartitions()
      The number of under replicated partitions on this broker.
    • rollable

      scala.Tuple2<Boolean,String> rollable()
      The value is true when the broker has no URPs and no imbalanced partition on this broker if it's not demoted.
    • beginShutdown

      void beginShutdown(long brokerEpoch) throws org.apache.kafka.common.errors.StaleBrokerEpochException
      Start the shutdown process for this broker on the provided broker epoch.
      Throws:
      org.apache.kafka.common.errors.StaleBrokerEpochException