AdminManager
is the administration interface of KafkaServer.
AdminManager
uses the MetadataCache for the following:
AdminManager
uses [Admin Manager on Broker [brokerId]] as the logging prefix (aka logIdent
).
Tip
|
Enable Add the following line to
Refer to Logging. |
AdminManager
takes the following when created:
AdminManager
initializes the internal registries and counters.
createTopics(
timeout: Int,
validateOnly: Boolean,
createInfo: Map[String, CreateTopicsRequest.TopicDetails],
responseCallback: (Map[String, ApiError]) => Unit): Unit
createTopics
…FIXME
Note
|
createTopics is used exclusively when KafkaApis is requested to handle a CREATE_TOPICS request.
|
describeConfigs(
resourceToConfigNames: Map[ConfigResource, Option[Set[String]]],
includeSynonyms: Boolean): Map[ConfigResource, DescribeConfigsResponse.Config]
For TOPIC
resources, describeConfigs
does the following:
-
Requests the AdminZkClient to fetch configuration of the given topics (from Zookeeper)
-
Uses
KafkaServer
utility to create the default log properties based on the KafkaConfig -
Uses
LogConfig
utility to fromProps with the default log properties and the topic configuration (from Zookeeper)
For BROKER
resources, describeConfigs
does the following…FIXME
Note
|
describeConfigs is used exclusively when KafkaApis is requested to handle a DescribeConfigs request.
|
alterConfigs(
configs: Map[ConfigResource, AlterConfigsRequest.Config],
validateOnly: Boolean): Map[ConfigResource, ApiError]
alterConfigs
…FIXME
Note
|
alterConfigs is used exclusively when KafkaApis is requested to handleAlterConfigsRequest.
|
configSynonyms(
name: String,
synonyms: List[String],
isSensitive: Boolean): List[DescribeConfigsResponse.ConfigSynonym]
configSynonyms
…FIXME
Note
|
configSynonyms is used when…FIXME
|
createPartitions(
timeout: Int,
newPartitions: Map[String, PartitionDetails],
validateOnly: Boolean,
listenerName: ListenerName,
callback: Map[String, ApiError] => Unit): Unit
createPartitions
…FIXME
Note
|
createPartitions is used when…FIXME
|
tryCompleteDelayedTopicOperations(topic: String): Unit
tryCompleteDelayedTopicOperations
…FIXME
Note
|
tryCompleteDelayedTopicOperations is used when…FIXME
|
incrementalAlterConfigs(
configs: Map[ConfigResource,
List[AlterConfigOp]],
validateOnly: Boolean): Map[ConfigResource, ApiError]
incrementalAlterConfigs
…FIXME
Note
|
incrementalAlterConfigs is used when…FIXME
|
createTopicConfigEntry(
logConfig: LogConfig,
topicProps: Properties,
includeSynonyms: Boolean)(
name: String,
value: Any): DescribeConfigsResponse.ConfigEntry
createTopicConfigEntry
…FIXME
Note
|
createTopicConfigEntry is used when AdminManager is requested to describe the configuration of a topic and create topics.
|
createBrokerConfigEntry(
perBrokerConfig: Boolean,
includeSynonyms: Boolean)(
name: String,
value: Any): DescribeConfigsResponse.ConfigEntry
createBrokerConfigEntry
…FIXME
Note
|
createBrokerConfigEntry is used when AdminManager is requested to…FIXME
|