Class ScalableTopicStats

java.lang.Object
org.apache.pulsar.common.policies.data.ScalableTopicStats

public class ScalableTopicStats extends Object
Stats for a scalable topic as a whole: the segment layout (the DAG), the traffic and storage aggregated across every segment, the producers attached to the topic, and the subscriptions with their backlog broken down across segments.

Rates are rounded to three decimals. Per-segment numbers come from each segment's owning broker; a segment whose stats could not be collected keeps its layout entry but reports no owner (see

invalid reference
LayoutSegment#getOwnerBroker()
) and contributes nothing to the aggregates.

The stats of a single segment — its own rates and storage, its cursors and consumers — are served separately as SegmentTopicStats by ScalableTopics.getSegmentStats.

  • Constructor Details

    • ScalableTopicStats

      public ScalableTopicStats()