Skip to content

Latest commit

 

History

History
77 lines (51 loc) · 2.63 KB

kafka-cluster-Broker.adoc

File metadata and controls

77 lines (51 loc) · 2.63 KB

Broker

Broker is a data structure that represents a Kafka broker using the following properties:

Broker is created when:

node Method

node(
  listenerName: ListenerName): Node

node looks up the node by the ListenerName.

node throws an BrokerEndPointNotAvailableException when the ListenerName could not be found:

End point with listener name [listenerName] not found for broker [id]
Note

node is used when:

getNode Method

getNode(
  listenerName: ListenerName): Option[Node]

getNode returns the Node for the ListenerName if available in the endPointsMap internal registry. Otherwise, getNode returns None.

Note

getNode is used when:

toServerInfo Method

toServerInfo(
  clusterId: String,
  config: KafkaConfig): AuthorizerServerInfo

toServerInfo…​FIXME

Note
toServerInfo is used when KafkaServer is requested to start up (and start an Authorizer if configured).