Package io.confluent.rest
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 TypeMethodDescriptionvoidbeginShutdown(long brokerEpoch) Start the shutdown process for this broker on the provided broker epoch.longThe brokerEpoch corresponding to this broker.longbrokerId()The brokerId corresponding to this broker.The brokerId of the current controller.rollable()The value is true when the broker has no URPs and no imbalanced partition on this broker if it's not demoted.longThe 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
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
-