Class RunRules
- java.lang.Object
-
- org.apache.druid.server.coordinator.duty.RunRules
-
- All Implemented Interfaces:
CoordinatorDuty
public class RunRules extends Object implements CoordinatorDuty
Duty to run retention rules for all used non-overshadowed segments. Overshadowed segments are marked unused byMarkOvershadowedSegmentsAsUnusedduty and are eventually unloaded from all servers byUnloadUnusedSegments.The params returned from
These fields are used by the downstream coordinator duty,run()must have these fields initialized:BalanceSegments.
-
-
Constructor Summary
Constructors Constructor Description RunRules(SegmentDeleteHandler deleteHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DruidCoordinatorRuntimeParamsrun(DruidCoordinatorRuntimeParams params)Implementations of this method run various activities performed by the coordinator.
-
-
-
Constructor Detail
-
RunRules
public RunRules(SegmentDeleteHandler deleteHandler)
-
-
Method Detail
-
run
public DruidCoordinatorRuntimeParams run(DruidCoordinatorRuntimeParams params)
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.
-
-