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
Modifier and TypeFieldDescriptiondouble
for 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
double
void
reset()
void
setPublishers
(List<? extends PublisherStats> statsList) Methods inherited from class org.apache.pulsar.common.policies.data.stats.TopicStatsImpl
add, addPublisher
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
-
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:
getPublishers
in interfaceNonPersistentTopicStats
- Specified by:
getPublishers
in interfaceTopicStats
- Overrides:
getPublishers
in classTopicStatsImpl
-
setPublishers
- Overrides:
setPublishers
in classTopicStatsImpl
-
addPublisher
-
getSubscriptions
- Specified by:
getSubscriptions
in interfaceNonPersistentTopicStats
- Specified by:
getSubscriptions
in interfaceTopicStats
- Overrides:
getSubscriptions
in classTopicStatsImpl
-
getReplication
- Specified by:
getReplication
in interfaceNonPersistentTopicStats
- Specified by:
getReplication
in interfaceTopicStats
- Overrides:
getReplication
in classTopicStatsImpl
-
getMsgDropRate
public double getMsgDropRate()- Specified by:
getMsgDropRate
in interfaceNonPersistentTopicStats
-
reset
public void reset()- Overrides:
reset
in classTopicStatsImpl
-
add
-