BrokerShutdownStatus
@Deprecated public static enum BrokerRemovalDescription.BrokerShutdownStatus extends Enum<BrokerRemovalDescription.BrokerShutdownStatus>
FAILED
- when the broker removal operation failed midway, unable to initiate a shutdown on the broker.
The user is expected to either retry the removal or cancel it.
2. PENDING
- when the broker is yet to be shut down.
3. CANCELED
- when the shutdown operation is canceled (e.g due to the initial reassignment plan computation failing)
4. COMPLETE
- when the broker has successfully been shut down.
If this status is returned, the broker to be removed is no longer part of the Kafka cluster.Enum Constant and Description |
---|
CANCELED
Deprecated.
|
COMPLETE
Deprecated.
|
FAILED
Deprecated.
|
PENDING
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract BrokerShutdownStatus |
toNewStatus()
Deprecated.
Convert this deprecated status to the new #
BrokerShutdownStatus |
static BrokerRemovalDescription.BrokerShutdownStatus |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static BrokerRemovalDescription.BrokerShutdownStatus[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BrokerRemovalDescription.BrokerShutdownStatus FAILED
public static final BrokerRemovalDescription.BrokerShutdownStatus CANCELED
public static final BrokerRemovalDescription.BrokerShutdownStatus PENDING
public static final BrokerRemovalDescription.BrokerShutdownStatus COMPLETE
public static BrokerRemovalDescription.BrokerShutdownStatus[] values()
for (BrokerRemovalDescription.BrokerShutdownStatus c : BrokerRemovalDescription.BrokerShutdownStatus.values()) System.out.println(c);
public static BrokerRemovalDescription.BrokerShutdownStatus 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 nullpublic abstract BrokerShutdownStatus toNewStatus()
BrokerShutdownStatus