AbstractControlRequest¶
AbstractControlRequest
is an extension of the AbstractRequest abstraction for controller requests that KafkaController uses to propage broker and partition state changes to brokers.
Contract¶
brokerEpoch¶
long brokerEpoch()
Used when:
KafkaApis
is requested to handleLeaderAndIsrRequest, handleStopReplicaRequest, handleUpdateMetadataRequest
controllerEpoch¶
int controllerEpoch()
Used when:
KafkaApis
is requested to handleStopReplicaRequestReplicaManager
is requested to maybeUpdateMetadataCache, becomeLeaderOrFollowerZkMetadataCache
is requested toupdateMetadata
controllerId¶
int controllerId()
Used when:
KafkaApis
is requested to handleStopReplicaRequestReplicaManager
is requested to maybeUpdateMetadataCache, becomeLeaderOrFollowerZkMetadataCache
is requested toupdateMetadata
Implementations¶
- LeaderAndIsrRequest
StopReplicaRequest
UpdateMetadataRequest
Creating Instance¶
AbstractControlRequest
takes the following to be created:
-
ApiKeys
- Version
Abstract Class
AbstractControlRequest
is an abstract class and cannot be created directly. It is created indirectly for the concrete AbstractControlRequests.