Class TopicStatsImpl
java.lang.Object
org.apache.pulsar.common.policies.data.stats.TopicStatsImpl
- All Implemented Interfaces:
TopicStats
- Direct Known Subclasses:
NonPersistentTopicStatsImpl
,PartitionedTopicStatsImpl
Statistics for a Pulsar topic.
This class is not thread-safe.
-
Field Summary
Modifier and TypeFieldDescriptionlong
double
Average size of published messages (bytes).long
Get estimated total unconsumed or backlog size in bytes.Map of bucket delayed index statistics.long
Total bytes published to the topic (bytes).long
Total bytes delivered to consumer (bytes).long
The compaction stats.long
The size of DelayedDeliveryTracer memory usage.long
Get the publish time of the earliest message over all the backlogs.long
record last failed offloaded timestamp.long
record last successful offloaded ledgerId.long
record last successful offloaded timestamp.boolean
Topic has chunked message published on it.long
Total messages published to the topic (msg).long
Total messages delivered to consumer (msg).double
Total rate of messages published on the topic (msg/s).double
Total rate of messages dispatched for the topic (msg/s).double
Total throughput of messages published on the topic (byte/s).double
Total throughput of messages dispatched for the topic (byte/s).int
The number of non-contiguous deleted messages ranges.int
The serialized size of non-contiguous deleted messages ranges.long
Space used to store the offloaded messages for the topic/.long
The broker that owns this topic.long
The number of times the publishing rate limit was triggered.Map of replication statistics by remote cluster context.long
Space used to store the messages for the topic (bytes).Map of subscriptions with their individual statistics.The topic epoch or empty if not set.int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(TopicStats ts) void
addPublisher
(PublisherStatsImpl stats) List<? extends PublisherStats>
Map<String,
? extends ReplicatorStats> Map<String,
? extends SubscriptionStats> void
reset()
void
setPublishers
(List<? extends PublisherStats> statsList) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pulsar.common.policies.data.TopicStats
getAverageMsgSize, getBacklogSize, getBytesInCounter, getBytesOutCounter, getCompaction, getDeduplicationStatus, getDelayedMessageIndexSizeInBytes, getEarliestMsgPublishTimeInBacklogs, getMsgInCounter, getMsgOutCounter, getMsgRateIn, getMsgRateOut, getMsgThroughputIn, getMsgThroughputOut, getNonContiguousDeletedMessagesRanges, getNonContiguousDeletedMessagesRangesSerializedSize, getOffloadedStorageSize, getOwnerBroker, getStorageSize, getTopicEpoch, getWaitingPublishers, isMsgChunkPublished
-
Field Details
-
msgRateIn
public double msgRateInTotal rate of messages published on the topic (msg/s). -
msgThroughputIn
public double msgThroughputInTotal throughput of messages published on the topic (byte/s). -
msgRateOut
public double msgRateOutTotal rate of messages dispatched for the topic (msg/s). -
msgThroughputOut
public double msgThroughputOutTotal throughput of messages dispatched for the topic (byte/s). -
bytesInCounter
public long bytesInCounterTotal bytes published to the topic (bytes). -
msgInCounter
public long msgInCounterTotal messages published to the topic (msg). -
bytesOutCounter
public long bytesOutCounterTotal bytes delivered to consumer (bytes). -
msgOutCounter
public long msgOutCounterTotal messages delivered to consumer (msg). -
averageMsgSize
public double averageMsgSizeAverage size of published messages (bytes). -
msgChunkPublished
public boolean msgChunkPublishedTopic has chunked message published on it. -
storageSize
public long storageSizeSpace used to store the messages for the topic (bytes). -
backlogSize
public long backlogSizeGet estimated total unconsumed or backlog size in bytes. -
publishRateLimitedTimes
public long publishRateLimitedTimesThe number of times the publishing rate limit was triggered. -
earliestMsgPublishTimeInBacklogs
public long earliestMsgPublishTimeInBacklogsGet the publish time of the earliest message over all the backlogs. -
offloadedStorageSize
public long offloadedStorageSizeSpace used to store the offloaded messages for the topic/. -
lastOffloadLedgerId
public long lastOffloadLedgerIdrecord last successful offloaded ledgerId. If no offload ledger, the value should be 0 -
lastOffloadSuccessTimeStamp
public long lastOffloadSuccessTimeStamprecord last successful offloaded timestamp. If no successful offload, the value should be 0 -
lastOffloadFailureTimeStamp
public long lastOffloadFailureTimeStamprecord last failed offloaded timestamp. If no failed offload, the value should be 0 -
ongoingTxnCount
public long ongoingTxnCount -
abortedTxnCount
public long abortedTxnCount -
committedTxnCount
public long committedTxnCount -
waitingPublishers
public int waitingPublishers -
subscriptions
Map of subscriptions with their individual statistics. -
replication
Map of replication statistics by remote cluster context. -
deduplicationStatus
-
topicEpoch
The topic epoch or empty if not set. -
nonContiguousDeletedMessagesRanges
public int nonContiguousDeletedMessagesRangesThe number of non-contiguous deleted messages ranges. -
nonContiguousDeletedMessagesRangesSerializedSize
public int nonContiguousDeletedMessagesRangesSerializedSizeThe serialized size of non-contiguous deleted messages ranges. -
delayedMessageIndexSizeInBytes
public long delayedMessageIndexSizeInBytesThe size of DelayedDeliveryTracer memory usage. -
bucketDelayedIndexStats
Map of bucket delayed index statistics. -
compaction
The compaction stats. -
ownerBroker
The broker that owns this topic.
-
-
Constructor Details
-
TopicStatsImpl
public TopicStatsImpl()
-
-
Method Details
-
getPublishers
- Specified by:
getPublishers
in interfaceTopicStats
-
setPublishers
-
addPublisher
-
getSubscriptions
- Specified by:
getSubscriptions
in interfaceTopicStats
-
getReplication
- Specified by:
getReplication
in interfaceTopicStats
-
reset
public void reset() -
add
-