PartitionReassignmentsStatus
@Deprecated public static enum BrokerRemovalDescription.PartitionReassignmentsStatus extends java.lang.Enum<BrokerRemovalDescription.PartitionReassignmentsStatus>
FAILED
- when the broker removal operation failed midway.
It is unknown whether any replicas were moved away or not.
The user is expected to either retry the removal or cancel it.
2. PENDING
- when the partition reassignments plan is being computed. Reassignments are yet to happen.
3. IN_PROGRESS
- when the partitions are actively being reassigned.
4. CANCELED
- when the partition drain was cancelled because of unrelated factors, like the broker being restarted or the shutdown failing
5. COMPLETE
- when all the replicas of the to be removed broker were reassigned away from it.
If this status is returned, the broker to be removed has no replicas on it.Enum Constant and Description |
---|
CANCELED
Deprecated.
|
COMPLETE
Deprecated.
|
FAILED
Deprecated.
|
IN_PROGRESS
Deprecated.
|
PENDING
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract PartitionReassignmentsStatus |
toNewStatus()
Deprecated.
Convert this deprecated status to the new #
PartitionReassignmentsStatus |
static BrokerRemovalDescription.PartitionReassignmentsStatus |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static BrokerRemovalDescription.PartitionReassignmentsStatus[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BrokerRemovalDescription.PartitionReassignmentsStatus CANCELED
public static final BrokerRemovalDescription.PartitionReassignmentsStatus FAILED
public static final BrokerRemovalDescription.PartitionReassignmentsStatus PENDING
public static final BrokerRemovalDescription.PartitionReassignmentsStatus IN_PROGRESS
public static final BrokerRemovalDescription.PartitionReassignmentsStatus COMPLETE
public static BrokerRemovalDescription.PartitionReassignmentsStatus[] values()
for (BrokerRemovalDescription.PartitionReassignmentsStatus c : BrokerRemovalDescription.PartitionReassignmentsStatus.values()) System.out.println(c);
public static BrokerRemovalDescription.PartitionReassignmentsStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract PartitionReassignmentsStatus toNewStatus()
PartitionReassignmentsStatus