Class PublisherStatsImpl
java.lang.Object
org.apache.pulsar.common.policies.data.stats.PublisherStatsImpl
- All Implemented Interfaces:
org.apache.pulsar.common.policies.data.PublisherStats
- Direct Known Subclasses:
NonPersistentPublisherStatsImpl
public class PublisherStatsImpl
extends Object
implements org.apache.pulsar.common.policies.data.PublisherStats
Statistics about a publisher.
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.apache.pulsar.client.api.ProducerAccessModedoubleAverage message size published by this publisher.doubleThe total rate of chunked messages published by this publisher.Metadata (key/value strings) associated with this publisher.doubleTotal rate of messages published by this publisher (msg/s).doubleTotal throughput of messages published by this publisher (byte/s).longId of this publisher.booleanWhether partial producer is supported at client. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(PublisherStatsImpl stats) voidsetAddress(String address) voidsetClientVersion(String clientVersion) voidsetConnectedSince(String connectedSince) voidsetProducerName(String producerName) Methods 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.PublisherStats
getAccessMode, getAverageMsgSize, getChunkedMessageRate, getMetadata, getMsgRateIn, getMsgThroughputIn, getProducerId, isSupportsPartialProducer
-
Field Details
-
accessMode
public org.apache.pulsar.client.api.ProducerAccessMode 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:
getProducerNamein interfaceorg.apache.pulsar.common.policies.data.PublisherStats
-
setProducerName
-
getAddress
- Specified by:
getAddressin interfaceorg.apache.pulsar.common.policies.data.PublisherStats
-
setAddress
-
getConnectedSince
- Specified by:
getConnectedSincein interfaceorg.apache.pulsar.common.policies.data.PublisherStats
-
setConnectedSince
-
getClientVersion
- Specified by:
getClientVersionin interfaceorg.apache.pulsar.common.policies.data.PublisherStats
-
setClientVersion
-