public enum BrokerShutdownStatusV1 extends Enum<BrokerShutdownStatusV1>
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.Modifier and Type | Method and Description |
---|---|
static BrokerShutdownStatusV1 |
toOldStatus(org.apache.kafka.clients.admin.BrokerShutdownStatus newStatus)
Convert the new #
BrokerShutdownStatus to this
deprecated status. |
static BrokerShutdownStatusV1 |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BrokerShutdownStatusV1[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BrokerShutdownStatusV1 FAILED
public static final BrokerShutdownStatusV1 CANCELED
public static final BrokerShutdownStatusV1 PENDING
public static final BrokerShutdownStatusV1 COMPLETE
public static BrokerShutdownStatusV1[] values()
for (BrokerShutdownStatusV1 c : BrokerShutdownStatusV1.values()) System.out.println(c);
public static BrokerShutdownStatusV1 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 static BrokerShutdownStatusV1 toOldStatus(org.apache.kafka.clients.admin.BrokerShutdownStatus newStatus)
BrokerShutdownStatus
to this
deprecated status.