public class AlterBrokerHealthSpec extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AlterBrokerHealthSpec.StatusEnum |
Constructor and Description |
---|
AlterBrokerHealthSpec(Set<Integer> brokerIds,
AlterBrokerHealthSpec.StatusEnum statusEnum,
String reason) |
AlterBrokerHealthSpec(Set<Integer> brokerIds,
AlterBrokerHealthSpec.StatusEnum statusEnum,
String reason,
boolean force) |
Modifier and Type | Method and Description |
---|---|
Set<Integer> |
brokerIds()
The list of brokers to alter leadership priority.
|
boolean |
equals(Object o) |
boolean |
force()
Whether the operation will be forced if the cluster has already reached the max number of brokers that can be demoted.
|
int |
hashCode() |
String |
reason()
An explanation for altering leadership priority.
|
AlterBrokerHealthSpec.StatusEnum |
statusEnum()
Whether to mark a broker's health as degraded (0) or healthy (1).
|
String |
toString() |
public AlterBrokerHealthSpec(Set<Integer> brokerIds, AlterBrokerHealthSpec.StatusEnum statusEnum, String reason)
public AlterBrokerHealthSpec(Set<Integer> brokerIds, AlterBrokerHealthSpec.StatusEnum statusEnum, String reason, boolean force)
public String reason()
public AlterBrokerHealthSpec.StatusEnum statusEnum()
public boolean force()