Package org.apache.kafka.clients.admin
Enum Class BrokerShutdownStatus
- All Implemented Interfaces:
Serializable
,Comparable<BrokerShutdownStatus>
,Constable
Denotes the status of the broker shutdown sub task of a given Confluent Balancer operation.
Operations are free to give specific meaning to each broker shutdown status
and its effect on the underlying operation, but in general:
1.
ERROR
- when the broker shutdown was started but did not complete successfully.
Users may need to take corrective action to recover.
2. PENDING
- when the broker is yet to be shut down.
3. IN_PROGRESS
- when the broker is shutting down.
3. CANCELED
- when a broker shutdown was canceled prior to initiation.
4. COMPLETED
- when the broker has successfully been shut down.
5. UNKNOWN
- clients will fall back to this status when they receive an unrecognized status value (since 7.0.0)-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic BrokerShutdownStatus
static BrokerShutdownStatus
Returns the enum constant of this class with the specified name.static BrokerShutdownStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ERROR
-
PENDING
-
IN_PROGRESS
-
CANCELED
-
COMPLETED
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toEnum
-