public class BalancerStatusDescription extends Object
ConfluentAdmin.describeBalancerStatus(DescribeBalancerStatusOptions)
.
The status of the balancer is tracked by a status field:
#balancerStatus()
.
* IDs of the brokers where Confluent Balancer is running is stored in field
#brokerIds()
.
In addition to the status field, the #balancerOperationError()
gives context about the status of the balancer, e.g. why the balancer is in an error state etc.Constructor and Description |
---|
BalancerStatusDescription(BalancerStatus balancerStatus,
Collection<Integer> brokerIds,
BalancerOperationError balancerOperationError) |
Modifier and Type | Method and Description |
---|---|
Optional<BalancerOperationError> |
balancerOperationError()
An optional error that gives context as to why the balancer is in the given state.
|
BalancerStatus |
balancerStatus()
The current status of the Confluent Balancer component.
|
Collection<Integer> |
brokerIds()
IDs of the brokers where Confluent Balancer component is running.
|
String |
toString() |
public BalancerStatusDescription(BalancerStatus balancerStatus, Collection<Integer> brokerIds, BalancerOperationError balancerOperationError)
public BalancerStatus balancerStatus()
BalancerStatus
public Collection<Integer> brokerIds()
public Optional<BalancerOperationError> balancerOperationError()