Class RunRules
java.lang.Object
org.apache.druid.server.coordinator.duty.RunRules
- All Implemented Interfaces:
CoordinatorDuty
Duty to run retention rules for all used non-overshadowed segments.
Overshadowed segments are marked unused by
MarkOvershadowedSegmentsAsUnused
duty and are eventually unloaded from all servers by UnloadUnusedSegments.
The params returned from run() must have these fields initialized:
BalanceSegments.-
Constructor Summary
ConstructorsConstructorDescriptionRunRules(MetadataAction.DeleteSegments deleteHandler, MetadataAction.GetDatasourceRules ruleHandler) -
Method Summary
Modifier and TypeMethodDescriptionrun(DruidCoordinatorRuntimeParams params) Implementations of this method run various activities performed by the coordinator.
-
Constructor Details
-
RunRules
public RunRules(MetadataAction.DeleteSegments deleteHandler, MetadataAction.GetDatasourceRules ruleHandler)
-
-
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.
-