public class AlterBrokerHealthSpec extends Object
Constructor and Description |
---|
AlterBrokerHealthSpec(Set<Integer> brokerIds,
BrokerComponent brokerComponent,
ComponentHealthStatus componentHealthStatus,
String reason) |
AlterBrokerHealthSpec(Set<Integer> brokerIds,
BrokerComponent brokerComponent,
ComponentHealthStatus componentHealthStatus,
String reason,
boolean force) |
AlterBrokerHealthSpec(Set<Integer> brokerIds,
ComponentHealthStatus componentHealthStatus,
String reason) |
Modifier and Type | Method and Description |
---|---|
BrokerComponent |
brokerComponent()
Which broker component's health is being modified.
|
Set<Integer> |
brokerIds()
The list of brokers to alter broker health.
|
ComponentHealthStatus |
componentHealthStatus()
Whether to mark a broker component's health as degraded (0) or healthy (1).
|
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 broker health.
|
String |
toString() |
public AlterBrokerHealthSpec(Set<Integer> brokerIds, ComponentHealthStatus componentHealthStatus, String reason)
public AlterBrokerHealthSpec(Set<Integer> brokerIds, BrokerComponent brokerComponent, ComponentHealthStatus componentHealthStatus, String reason)
public AlterBrokerHealthSpec(Set<Integer> brokerIds, BrokerComponent brokerComponent, ComponentHealthStatus componentHealthStatus, String reason, boolean force)
public String reason()
public BrokerComponent brokerComponent()
public ComponentHealthStatus componentHealthStatus()
public boolean force()