node(
listenerName: ListenerName): Node
Broker
Broker is a data structure that represents a Kafka broker using the following properties:
Broker is created when:
-
KafkaServeris requested to createBrokerInfo -
MetadataCacheis requested to update the metadata -
BrokerIdZNodeutility is used to decode a broker metadata (from JSON format in Zookeeper)
node Method
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
|
|
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
|
|
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).
|