Class PublisherStatsImpl
java.lang.Object
org.apache.pulsar.common.policies.data.stats.PublisherStatsImpl
- All Implemented Interfaces:
PublisherStats
- Direct Known Subclasses:
NonPersistentPublisherStatsImpl
Statistics about a publisher.
-
Field Summary
Modifier and TypeFieldDescriptiondouble
Average message size published by this publisher.double
The total rate of chunked messages published by this publisher.Metadata (key/value strings) associated with this publisher.double
Total rate of messages published by this publisher (msg/s).double
Total throughput of messages published by this publisher (byte/s).long
Id of this publisher.boolean
Whether partial producer is supported at client. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(PublisherStatsImpl stats) void
setAddress
(String address) void
setClientVersion
(String clientVersion) void
setConnectedSince
(String connectedSince) void
setProducerName
(String producerName) 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.PublisherStats
getAccessMode, getAverageMsgSize, getChunkedMessageRate, getMetadata, getMsgRateIn, getMsgThroughputIn, getProducerId, isSupportsPartialProducer
-
Field Details
-
accessMode
-
msgRateIn
public double msgRateInTotal rate of messages published by this publisher (msg/s). -
msgThroughputIn
public double msgThroughputInTotal throughput of messages published by this publisher (byte/s). -
averageMsgSize
public double averageMsgSizeAverage message size published by this publisher. -
chunkedMessageRate
public double chunkedMessageRateThe total rate of chunked messages published by this publisher. -
producerId
public long producerIdId of this publisher. -
supportsPartialProducer
public boolean supportsPartialProducerWhether partial producer is supported at client. -
metadata
Metadata (key/value strings) associated with this publisher.
-
-
Constructor Details
-
PublisherStatsImpl
public PublisherStatsImpl()
-
-
Method Details
-
add
-
getProducerName
- Specified by:
getProducerName
in interfacePublisherStats
-
setProducerName
-
getAddress
- Specified by:
getAddress
in interfacePublisherStats
-
setAddress
-
getConnectedSince
- Specified by:
getConnectedSince
in interfacePublisherStats
-
setConnectedSince
-
getClientVersion
- Specified by:
getClientVersion
in interfacePublisherStats
-
setClientVersion
-