public enum ActionType extends Enum<ActionType>
INTER_BROKER_REPLICA_MOVEMENT
: Move a replica from a source broker to a destination broker.INTRA_BROKER_REPLICA_MOVEMENT
: Move a replica from a source disk to a destination disk.INTER_CELL_PARTITION_MOVEMENT
: Move a partition from a source cell to a destination cell.LEADERSHIP_MOVEMENT
: Move leadership of a leader from a source broker to a follower of the same
partition residing in a destination broker.INTER_BROKER_REPLICA_SWAP
: Swap places of replicas residing in source and destination brokers.INTRA_BROKER_REPLICA_SWAP
: Swap places of replicas residing in source and destination disks.Enum Constant and Description |
---|
INTER_BROKER_REPLICA_MOVEMENT |
INTER_BROKER_REPLICA_SWAP |
INTER_CELL_PARTITION_MOVEMENT |
INTRA_BROKER_REPLICA_MOVEMENT |
INTRA_BROKER_REPLICA_SWAP |
LEADERSHIP_MOVEMENT |
Modifier and Type | Method and Description |
---|---|
String |
balancingAction() |
static List<ActionType> |
cachedValues() |
String |
toString() |
static ActionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ActionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActionType INTER_BROKER_REPLICA_MOVEMENT
public static final ActionType INTRA_BROKER_REPLICA_MOVEMENT
public static final ActionType INTER_CELL_PARTITION_MOVEMENT
public static final ActionType LEADERSHIP_MOVEMENT
public static final ActionType INTER_BROKER_REPLICA_SWAP
public static final ActionType INTRA_BROKER_REPLICA_SWAP
public static ActionType[] values()
for (ActionType c : ActionType.values()) System.out.println(c);
public static ActionType 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 List<ActionType> cachedValues()
public String balancingAction()
public String toString()
toString
in class Enum<ActionType>