ControllerEvent¶
ControllerEvent
is an abstraction of events in the lifecycle of KafkaController (state machine) that trigger state change.
ControllerEvent
events are managed by ControllerEventManager.
Contract¶
preempt¶
preempt(): Unit
Used when:
- FIXME
ControllerState¶
state: ControllerState
ControllerState of the ControllerEventManager (while processing controller events)
Used when:
- FIXME
Implementations¶
- AllocateProducerIds
- AlterPartitionReceived
- ApiPartitionReassignment
- AutoPreferredReplicaLeaderElection
- BrokerChange
- BrokerModifications
- ControlledShutdown
- ControllerChange
- Expire
- IsrChangeNotification
- LeaderAndIsrResponseReceived
- ListPartitionReassignments
- LogDirEventNotification
- MockEvent
- PartitionModifications
- PartitionReassignmentIsrChange
- Reelect
- RegisterBrokerAndReelect
- ReplicaLeaderElection
- ShutdownEventThread
- Startup
- TopicChange
- TopicDeletion
- TopicDeletionStopReplicaResponseReceived
- TopicUncleanLeaderElectionEnable
- UncleanLeaderElectionEnable
- UpdateFeatures
- UpdateMetadataResponseReceived
- ZkPartitionReassignment
Review Me¶
[[implementations]] .ControllerEvents [cols="1,1,2",options="header",width="100%"] |=== | ControllerEvent | ControllerState | Description
| <
| <
| BrokerModifications | <
| ControlledShutdown | <
| ControllerChange | <
| Expire | <
| IsrChangeNotification | <
| <
| LogDirEventNotification | <
| PartitionModifications | <
| PartitionReassignment | <
| PartitionReassignmentIsrChange | <
| <
| <
| RegisterBrokerAndReelect | <
| ShutdownEventThread | <
| <
| TopicChange | <
| <
| TopicDeletionStopReplicaResponseReceived | <
| TopicUncleanLeaderElectionEnable | <
| UncleanLeaderElectionEnable | <KafkaController
is requested to <
|===
NOTE: ControllerEvent
is a Scala sealed trait and so all the possible <