Class KillSupervisorsCustomDuty
java.lang.Object
org.apache.druid.server.coordinator.duty.KillSupervisorsCustomDuty
- All Implemented Interfaces:
CoordinatorCustomDuty,CoordinatorDuty
Example
CoordinatorCustomDuty for automatic deletion of terminated
supervisors from the metadata storage. This duty has the same implementation
as KillSupervisors but uses a different configuration style as
detailed in CoordinatorCustomDuty.
This duty is only an example to demonstrate the usage of coordinator custom
duties. All production clusters should continue using KillSupervisors.
-
Constructor Summary
ConstructorsConstructorDescriptionKillSupervisorsCustomDuty(org.joda.time.Duration retainDuration, MetadataSupervisorManager metadataSupervisorManager) -
Method Summary
Modifier and TypeMethodDescriptionrun(DruidCoordinatorRuntimeParams params) Implementations of this method run various activities performed by the coordinator.
-
Constructor Details
-
KillSupervisorsCustomDuty
public KillSupervisorsCustomDuty(org.joda.time.Duration retainDuration, MetadataSupervisorManager metadataSupervisorManager)
-
-
Method Details
-
run
Description copied from interface:CoordinatorDutyImplementations of this method run various activities performed by the coordinator. Input params can be used and modified. The returned DruidCoordinatorRuntimeParams is passed to the next duty.- Specified by:
runin interfaceCoordinatorDuty- Returns:
- same as input or a modified value to be used by next duty. Null return
values will prevent subsequent CoordinatorDuty objects (see the order in the lists passed into the constructor of
DruidCoordinator.DutiesRunnable) from running until the next cycle.
-