Class ScalableTopicStats
java.lang.Object
org.apache.pulsar.common.policies.data.ScalableTopicStats
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
) and contributes nothing to
the aggregates.
invalid reference
LayoutSegment#getOwnerBroker()
The stats of a single segment — its own rates and storage, its cursors and consumers —
are served separately as SegmentTopicStats by ScalableTopics.getSegmentStats.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA consumer on a subscription.static classOne node of the segment DAG: the segment's name (which encodes its hash range and ID), its state, its edges and the broker serving it.static classThe segment DAG: the layout epoch and every segment, active or sealed.static classA producer attached to the topic.static classThe share of a subscription that lives on one segment.static classA subscription on the scalable topic, aggregated across every segment that holds a cursor for it. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ScalableTopicStats
public ScalableTopicStats()
-