Interface TopicStats
-
- All Known Subinterfaces:
NonPersistentTopicStats,PartitionedTopicStats
public interface TopicStatsStatistics for a Pulsar topic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetAverageMsgSize()Average size of published messages (bytes).longgetBacklogSize()Get estimated total unconsumed or backlog size in bytes.longgetBytesInCounter()Total bytes published to the topic (bytes).longgetBytesOutCounter()Total bytes delivered to consumer (bytes).java.lang.StringgetDeduplicationStatus()longgetMsgInCounter()Total messages published to the topic (msg).longgetMsgOutCounter()Total messages delivered to consumer (msg).doublegetMsgRateIn()Total rate of messages published on the topic (msg/s).doublegetMsgRateOut()Total rate of messages dispatched for the topic (msg/s).doublegetMsgThroughputIn()Total throughput of messages published on the topic (byte/s).doublegetMsgThroughputOut()Total throughput of messages dispatched for the topic (byte/s).intgetNonContiguousDeletedMessagesRanges()The number of non-contiguous deleted messages ranges.intgetNonContiguousDeletedMessagesRangesSerializedSize()The serialized size of non-contiguous deleted messages ranges.longgetOffloadedStorageSize()Space used to store the offloaded messages for the topic/.java.util.List<? extends PublisherStats>getPublishers()List of connected publishers on this topic w/ their stats.java.util.Map<java.lang.String,? extends ReplicatorStats>getReplication()Map of replication statistics by remote cluster context.longgetStorageSize()Space used to store the messages for the topic (bytes).java.util.Map<java.lang.String,? extends SubscriptionStats>getSubscriptions()Map of subscriptions with their individual statistics.java.lang.LonggetTopicEpoch()The topic epoch or empty if not set.intgetWaitingPublishers()booleanisMsgChunkPublished()Topic has chunked message published on it.
-
-
-
Method Detail
-
getMsgRateIn
double getMsgRateIn()
Total rate of messages published on the topic (msg/s).
-
getMsgThroughputIn
double getMsgThroughputIn()
Total throughput of messages published on the topic (byte/s).
-
getMsgRateOut
double getMsgRateOut()
Total rate of messages dispatched for the topic (msg/s).
-
getMsgThroughputOut
double getMsgThroughputOut()
Total throughput of messages dispatched for the topic (byte/s).
-
getBytesInCounter
long getBytesInCounter()
Total bytes published to the topic (bytes).
-
getMsgInCounter
long getMsgInCounter()
Total messages published to the topic (msg).
-
getBytesOutCounter
long getBytesOutCounter()
Total bytes delivered to consumer (bytes).
-
getMsgOutCounter
long getMsgOutCounter()
Total messages delivered to consumer (msg).
-
getAverageMsgSize
double getAverageMsgSize()
Average size of published messages (bytes).
-
isMsgChunkPublished
boolean isMsgChunkPublished()
Topic has chunked message published on it.
-
getStorageSize
long getStorageSize()
Space used to store the messages for the topic (bytes).
-
getBacklogSize
long getBacklogSize()
Get estimated total unconsumed or backlog size in bytes.
-
getOffloadedStorageSize
long getOffloadedStorageSize()
Space used to store the offloaded messages for the topic/.
-
getPublishers
java.util.List<? extends PublisherStats> getPublishers()
List of connected publishers on this topic w/ their stats.
-
getWaitingPublishers
int getWaitingPublishers()
-
getSubscriptions
java.util.Map<java.lang.String,? extends SubscriptionStats> getSubscriptions()
Map of subscriptions with their individual statistics.
-
getReplication
java.util.Map<java.lang.String,? extends ReplicatorStats> getReplication()
Map of replication statistics by remote cluster context.
-
getDeduplicationStatus
java.lang.String getDeduplicationStatus()
-
getTopicEpoch
java.lang.Long getTopicEpoch()
The topic epoch or empty if not set.
-
getNonContiguousDeletedMessagesRanges
int getNonContiguousDeletedMessagesRanges()
The number of non-contiguous deleted messages ranges.
-
getNonContiguousDeletedMessagesRangesSerializedSize
int getNonContiguousDeletedMessagesRangesSerializedSize()
The serialized size of non-contiguous deleted messages ranges.
-
-