Class NonPersistentTopicStatsImpl
java.lang.Object
org.apache.pulsar.common.policies.data.stats.TopicStatsImpl
org.apache.pulsar.common.policies.data.stats.NonPersistentTopicStatsImpl
- All Implemented Interfaces:
NonPersistentTopicStats,TopicStats
- Direct Known Subclasses:
NonPersistentPartitionedTopicStatsImpl
Statistics for a non-persistent topic.
This class is not thread-safe.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoublefor non-persistent topic: broker drops msg if publisher publishes messages more than configured max inflight messages per connection.Map<String,? extends NonPersistentReplicatorStats> Map of non-persistent replication statistics by remote cluster context.Map<String,? extends NonPersistentSubscriptionStats> Map of non-persistent subscriptions with their individual statistics.Fields inherited from class org.apache.pulsar.common.policies.data.stats.TopicStatsImpl
abortedTxnCount, averageMsgSize, backlogSize, bucketDelayedIndexStats, bytesInCounter, bytesOutCounter, committedTxnCount, compaction, deduplicationStatus, delayedMessageIndexSizeInBytes, earliestMsgPublishTimeInBacklogs, lastOffloadFailureTimeStamp, lastOffloadLedgerId, lastOffloadSuccessTimeStamp, msgChunkPublished, msgInCounter, msgOutCounter, msgRateIn, msgRateOut, msgThroughputIn, msgThroughputOut, nonContiguousDeletedMessagesRanges, nonContiguousDeletedMessagesRangesSerializedSize, offloadedStorageSize, ongoingTxnCount, ownerBroker, publishRateLimitedTimes, storageSize, topicEpoch, waitingPublishers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoublevoidreset()voidsetPublishers(List<? extends PublisherStats> statsList) Methods inherited from class org.apache.pulsar.common.policies.data.stats.TopicStatsImpl
add, addPublisherMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
msgDropRate
public double msgDropRatefor non-persistent topic: broker drops msg if publisher publishes messages more than configured max inflight messages per connection. -
publishers
-
subscriptions
-
replication
-
nonPersistentSubscriptions
Map of non-persistent subscriptions with their individual statistics. -
nonPersistentReplicators
Map of non-persistent replication statistics by remote cluster context.
-
-
Constructor Details
-
NonPersistentTopicStatsImpl
public NonPersistentTopicStatsImpl()
-
-
Method Details
-
getNonPersistentPublishers
-
getNonPersistentSubscriptions
-
getNonPersistentReplicators
-
getPublishers
- Specified by:
getPublishersin interfaceNonPersistentTopicStats- Specified by:
getPublishersin interfaceTopicStats- Overrides:
getPublishersin classTopicStatsImpl
-
setPublishers
- Overrides:
setPublishersin classTopicStatsImpl
-
addPublisher
-
getSubscriptions
- Specified by:
getSubscriptionsin interfaceNonPersistentTopicStats- Specified by:
getSubscriptionsin interfaceTopicStats- Overrides:
getSubscriptionsin classTopicStatsImpl
-
getReplication
- Specified by:
getReplicationin interfaceNonPersistentTopicStats- Specified by:
getReplicationin interfaceTopicStats- Overrides:
getReplicationin classTopicStatsImpl
-
getMsgDropRate
public double getMsgDropRate()- Specified by:
getMsgDropRatein interfaceNonPersistentTopicStats
-
reset
public void reset()- Overrides:
resetin classTopicStatsImpl
-
add
-