Class DruidCoordinator


  • public class DruidCoordinator
    extends Object
    • Field Detail

      • SEGMENT_COMPARATOR_RECENT_FIRST

        public static final com.google.common.collect.Ordering<org.apache.druid.timeline.DataSegment> SEGMENT_COMPARATOR_RECENT_FIRST
        Orders newest segments (i.e. segments with most recent intervals) first. Used by: It is presumed that more recent segments are queried more often and contain more important data for users. This ordering thus ensures that if the cluster has availability or loading problems, the most recent segments are made available as soon as possible.
      • HISTORICAL_MANAGEMENT_DUTIES_DUTY_GROUP

        public static final String HISTORICAL_MANAGEMENT_DUTIES_DUTY_GROUP
        See Also:
        Constant Field Values
    • Method Detail

      • isLeader

        public boolean isLeader()
      • getTierToDatasourceToUnderReplicatedCount

        public Map<String,​it.unimi.dsi.fastutil.objects.Object2LongMap<String>> getTierToDatasourceToUnderReplicatedCount​(boolean useClusterView)
      • getTierToDatasourceToUnderReplicatedCount

        public Map<String,​it.unimi.dsi.fastutil.objects.Object2LongMap<String>> getTierToDatasourceToUnderReplicatedCount​(Iterable<org.apache.druid.timeline.DataSegment> dataSegments,
                                                                                                                                boolean useClusterView)
      • getDatasourceToUnavailableSegmentCount

        public it.unimi.dsi.fastutil.objects.Object2IntMap<String> getDatasourceToUnavailableSegmentCount()
      • getDatasourceToLoadStatus

        public Map<String,​Double> getDatasourceToLoadStatus()
      • getReplicationFactor

        @Nullable
        public Integer getReplicationFactor​(org.apache.druid.timeline.SegmentId segmentId)
      • getTotalSizeOfSegmentsAwaitingCompaction

        @Nullable
        public Long getTotalSizeOfSegmentsAwaitingCompaction​(String dataSource)
      • getCurrentLeader

        public String getCurrentLeader()
      • start

        public void start()
      • stop

        public void stop()
      • runCompactSegmentsDuty

        public void runCompactSegmentsDuty()