public class BrokerAdditionV2StateMachine
extends StateMachine<BrokerAdditionV2StateMachine.BrokerAdditionV2State,BrokerAdditionV2StateMachine.BrokerAdditionV2Event>
A state machine for the second version of the broker addition operation.
Notably, because the addition operation is no longer an explicit, separate operation - the state machine
is simplified significantly.
BOS - Balancer Operation Status
PRS - Partition Reassignment Status
+--------------+--------------+ SUCCESS +-----------------------------+
| REASSIGNMENT | | COMPLETED |
| BOS: IN_PROGRESS |+-----------------> BOS: SUCCESS |
| PRS: IN_PROGRESS | | PRS: COMPLETED |
+--------------+--------------+ +-----------------------------+
|
| CANCELED
|
+-------------v---------------+
| CANCELED |
| |
| BOS: FAILED. |
| PRS: CANCELED |
+-----------------------------+