Package org.apache.druid.server.http
Class CoordinatorDynamicConfigSyncer
java.lang.Object
org.apache.druid.server.http.CoordinatorDynamicConfigSyncer
Updates all brokers with the latest coordinator dynamic config.
-
Constructor Summary
ConstructorsConstructorDescriptionCoordinatorDynamicConfigSyncer(ServiceClientFactory clientFactory, CoordinatorConfigManager configManager, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, DruidNodeDiscoveryProvider druidNodeDiscoveryProvider, ServiceEmitter emitter) -
Method Summary
Modifier and TypeMethodDescriptionReturns the set of Brokers which have been updated with the latestCoordinatorDynamicConfig.voidSchedules a periodic sync with brokers when the coordinator becomes the leader.voidStops the sync when coordinator stops being the leader.voidQueues the configuration sync to the brokers without blocking the calling thread.voidstop()
-
Constructor Details
-
CoordinatorDynamicConfigSyncer
@Inject public CoordinatorDynamicConfigSyncer(ServiceClientFactory clientFactory, CoordinatorConfigManager configManager, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, DruidNodeDiscoveryProvider druidNodeDiscoveryProvider, ServiceEmitter emitter)
-
-
Method Details
-
queueBroadcastConfigToBrokers
public void queueBroadcastConfigToBrokers()Queues the configuration sync to the brokers without blocking the calling thread. -
getInSyncBrokers
Returns the set of Brokers which have been updated with the latestCoordinatorDynamicConfig. -
onLeaderStart
public void onLeaderStart()Schedules a periodic sync with brokers when the coordinator becomes the leader. -
onLeaderStop
public void onLeaderStop()Stops the sync when coordinator stops being the leader. -
stop
public void stop()
-