Class DruidServer

    • Method Detail

      • getName

        public String getName()
      • getHost

        public String getHost()
      • getHostAndPort

        public String getHostAndPort()
      • getHostAndTlsPort

        public String getHostAndTlsPort()
      • getCurrSize

        public long getCurrSize()
      • getMaxSize

        public long getMaxSize()
      • getTier

        public String getTier()
      • isSegmentReplicationTarget

        public boolean isSegmentReplicationTarget()
      • isSegmentBroadcastTarget

        public boolean isSegmentBroadcastTarget()
      • isSegmentReplicationOrBroadcastTarget

        public boolean isSegmentReplicationOrBroadcastTarget()
      • getPriority

        public int getPriority()
      • getScheme

        public String getScheme()
      • iterateAllSegments

        public Iterable<org.apache.druid.timeline.DataSegment> iterateAllSegments()
        Returns an iterable to go over all segments in all data sources, stored on this DruidServer. The order in which segments are iterated is unspecified. Since this DruidServer can be mutated concurrently, the set of segments observed during an iteration may _not_ be a momentary snapshot of the segments on the server, in other words, it may be that there was no moment when the DruidServer stored exactly the returned set of segments. Note: the iteration may not be as trivially cheap as, for example, iteration over an ArrayList. Try (to some reasonable extent) to organize the code so that it iterates the returned iterable only once rather than several times.
      • getTotalSegments

        public int getTotalSegments()
        Returns the current number of segments, stored in this DruidServer object. This number if weakly consistent with the number of segments if iterateAllSegments() is iterated about the same time, because segments might be added or removed in parallel.
      • getSegment

        public org.apache.druid.timeline.DataSegment getSegment​(org.apache.druid.timeline.SegmentId segmentId)
      • addDataSegment

        public DruidServer addDataSegment​(org.apache.druid.timeline.DataSegment segment)
      • removeDataSegment

        @Nullable
        public org.apache.druid.timeline.DataSegment removeDataSegment​(org.apache.druid.timeline.SegmentId segmentId)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • copyWithoutSegments

        public DruidServer copyWithoutSegments()