Package org.apache.druid.server.http
Class BrokerDynamicConfigSyncer
java.lang.Object
org.apache.druid.server.http.BaseDynamicConfigSyncer<BrokerDynamicConfig>
org.apache.druid.server.http.BrokerDynamicConfigSyncer
Syncs broker dynamic configuration to all brokers.
-
Constructor Summary
ConstructorsConstructorDescriptionBrokerDynamicConfigSyncer(ServiceClientFactory clientFactory, JacksonConfigManager configManager, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, DruidNodeDiscoveryProvider druidNodeDiscoveryProvider, ServiceEmitter emitter) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet the name of this config type for logging (e.g., "coordinator dynamic configuration", "broker dynamic configuration").protected BrokerDynamicConfigGet the current configuration to broadcast to brokers.protected booleanpushConfigToBroker(BrokerClient brokerClient, BrokerDynamicConfig config) Push the config to a broker using the appropriate BrokerClient method.Methods inherited from class org.apache.druid.server.http.BaseDynamicConfigSyncer
broadcastConfigToBrokers, getInSyncBrokers, onLeaderStart, onLeaderStop, queueBroadcastConfigToBrokers, stop
-
Constructor Details
-
BrokerDynamicConfigSyncer
@Inject public BrokerDynamicConfigSyncer(ServiceClientFactory clientFactory, JacksonConfigManager configManager, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, DruidNodeDiscoveryProvider druidNodeDiscoveryProvider, ServiceEmitter emitter)
-
-
Method Details
-
getCurrentConfig
Description copied from class:BaseDynamicConfigSyncerGet the current configuration to broadcast to brokers.- Specified by:
getCurrentConfigin classBaseDynamicConfigSyncer<BrokerDynamicConfig>
-
pushConfigToBroker
protected boolean pushConfigToBroker(BrokerClient brokerClient, BrokerDynamicConfig config) throws Exception Description copied from class:BaseDynamicConfigSyncerPush the config to a broker using the appropriate BrokerClient method.- Specified by:
pushConfigToBrokerin classBaseDynamicConfigSyncer<BrokerDynamicConfig>- Returns:
- true if the push was successful
- Throws:
Exception
-
getConfigTypeName
Description copied from class:BaseDynamicConfigSyncerGet the name of this config type for logging (e.g., "coordinator dynamic configuration", "broker dynamic configuration").- Specified by:
getConfigTypeNamein classBaseDynamicConfigSyncer<BrokerDynamicConfig>
-