Class CoordinatorDynamicConfig.Builder
- java.lang.Object
-
- org.apache.druid.server.coordinator.CoordinatorDynamicConfig.Builder
-
- Enclosing class:
- CoordinatorDynamicConfig
public static class CoordinatorDynamicConfig.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(Long markSegmentAsUnusedDelayMillis, Long mergeBytesLimit, Integer mergeSegmentsLimit, Integer maxSegmentsToMove, Integer replicantLifetime, Integer replicationThrottleLimit, Integer balancerComputeThreads, Object specificDataSourcesToKillUnusedSegmentsIn, Double killTaskSlotRatio, Integer maxKillTaskSlots, Object dataSourcesToNotKillStalePendingSegmentsIn, Integer maxSegmentsInNodeLoadingQueue, Object decommissioningNodes, Boolean pauseCoordination, Boolean replicateAfterLoadTimeout, Boolean useRoundRobinSegmentAssignment, Boolean smartSegmentLoading, Map<String,String> debugDimensions)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(@Nullable Long markSegmentAsUnusedDelayMillis, @Nullable Long mergeBytesLimit, @Nullable Integer mergeSegmentsLimit, @Nullable Integer maxSegmentsToMove, @Nullable Integer replicantLifetime, @Nullable Integer replicationThrottleLimit, @Nullable Integer balancerComputeThreads, @Nullable Object specificDataSourcesToKillUnusedSegmentsIn, @Nullable Double killTaskSlotRatio, @Nullable Integer maxKillTaskSlots, @Nullable Object dataSourcesToNotKillStalePendingSegmentsIn, @Nullable Integer maxSegmentsInNodeLoadingQueue, @Nullable Object decommissioningNodes, @Nullable Boolean pauseCoordination, @Nullable Boolean replicateAfterLoadTimeout, @Nullable Boolean useRoundRobinSegmentAssignment, @Nullable Boolean smartSegmentLoading, @Nullable Map<String,String> debugDimensions)
-
-
Method Detail
-
withMarkSegmentAsUnusedDelayMillis
public CoordinatorDynamicConfig.Builder withMarkSegmentAsUnusedDelayMillis(long leadingTimeMillis)
-
withMaxSegmentsToMove
public CoordinatorDynamicConfig.Builder withMaxSegmentsToMove(int maxSegmentsToMove)
-
withSmartSegmentLoading
public CoordinatorDynamicConfig.Builder withSmartSegmentLoading(boolean smartSegmentLoading)
-
withReplicantLifetime
public CoordinatorDynamicConfig.Builder withReplicantLifetime(int replicantLifetime)
-
withReplicationThrottleLimit
public CoordinatorDynamicConfig.Builder withReplicationThrottleLimit(int replicationThrottleLimit)
-
withSpecificDataSourcesToKillUnusedSegmentsIn
public CoordinatorDynamicConfig.Builder withSpecificDataSourcesToKillUnusedSegmentsIn(Set<String> dataSources)
-
withDatasourcesToNotKillPendingSegmentsIn
public CoordinatorDynamicConfig.Builder withDatasourcesToNotKillPendingSegmentsIn(Set<String> datasources)
-
withKillTaskSlotRatio
public CoordinatorDynamicConfig.Builder withKillTaskSlotRatio(Double killTaskSlotRatio)
-
withMaxKillTaskSlots
public CoordinatorDynamicConfig.Builder withMaxKillTaskSlots(Integer maxKillTaskSlots)
-
withMaxSegmentsInNodeLoadingQueue
public CoordinatorDynamicConfig.Builder withMaxSegmentsInNodeLoadingQueue(int maxSegmentsInNodeLoadingQueue)
-
withDecommissioningNodes
public CoordinatorDynamicConfig.Builder withDecommissioningNodes(Set<String> decommissioning)
-
withPauseCoordination
public CoordinatorDynamicConfig.Builder withPauseCoordination(boolean pauseCoordination)
-
withReplicateAfterLoadTimeout
public CoordinatorDynamicConfig.Builder withReplicateAfterLoadTimeout(boolean replicateAfterLoadTimeout)
-
withUseRoundRobinSegmentAssignment
public CoordinatorDynamicConfig.Builder withUseRoundRobinSegmentAssignment(boolean useRoundRobinSegmentAssignment)
-
build
public CoordinatorDynamicConfig build()
Builds a CoordinatoryDynamicConfig using either the configured values, or the default value if not configured.
-
build
public CoordinatorDynamicConfig build(CoordinatorDynamicConfig defaults)
-
-