public static enum Broker.ResourceComparator.Mode extends Enum<Broker.ResourceComparator.Mode>
Enum Constant and Description |
---|
ALLOWED
Compares allowed capacity (<= total capacity).
|
TOTAL
Compares total capacity.
|
UNUSED_ALLOWED
Compares unused amount of allowed capacity
e.g.
|
Modifier and Type | Method and Description |
---|---|
static Broker.ResourceComparator.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Broker.ResourceComparator.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Broker.ResourceComparator.Mode TOTAL
public static final Broker.ResourceComparator.Mode ALLOWED
KafkaCruiseControlConfig.PRODUCER_INBOUND_CAPACITY_THRESHOLD_CONFIG
is 90%,
then allowed will be 18 Mib.public static final Broker.ResourceComparator.Mode UNUSED_ALLOWED
public static Broker.ResourceComparator.Mode[] values()
for (Broker.ResourceComparator.Mode c : Broker.ResourceComparator.Mode.values()) System.out.println(c);
public static Broker.ResourceComparator.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null