Class LoadQueueTaskMaster
java.lang.Object
org.apache.druid.server.coordinator.loading.LoadQueueTaskMaster
Provides LoadQueuePeons
-
Constructor Summary
ConstructorsConstructorDescriptionLoadQueueTaskMaster(com.fasterxml.jackson.databind.ObjectMapper jsonMapper, ScheduledExecutorService peonExec, ExecutorService callbackExec, HttpLoadQueuePeonConfig config, HttpClient httpClient, Supplier<CoordinatorDynamicConfig> coordinatorDynamicConfigSupplier) -
Method Summary
Modifier and TypeMethodDescriptiongetPeonForServer(ImmutableDruidServer server) booleanvoidvoidStops and removes all peons.voidresetPeonsForNewServers(List<ImmutableDruidServer> currentServers) Creates a peon for each of the given servers, if it doesn't already exist and removes peons for servers not present in the cluster anymore.
-
Constructor Details
-
LoadQueueTaskMaster
public LoadQueueTaskMaster(com.fasterxml.jackson.databind.ObjectMapper jsonMapper, ScheduledExecutorService peonExec, ExecutorService callbackExec, HttpLoadQueuePeonConfig config, HttpClient httpClient, Supplier<CoordinatorDynamicConfig> coordinatorDynamicConfigSupplier)
-
-
Method Details
-
getAllPeons
-
getPeonForServer
-
resetPeonsForNewServers
Creates a peon for each of the given servers, if it doesn't already exist and removes peons for servers not present in the cluster anymore.This method must not run concurrently with
onLeaderStart()andonLeaderStop()so that there are no stray peons if the Coordinator is not leader anymore. -
onLeaderStart
public void onLeaderStart() -
onLeaderStop
public void onLeaderStop()Stops and removes all peons. -
isHttpLoading
public boolean isHttpLoading()
-