Class PublisherStatsImpl

  • All Implemented Interfaces:
    org.apache.pulsar.common.policies.data.PublisherStats
    Direct Known Subclasses:
    NonPersistentPublisherStatsImpl

    public class PublisherStatsImpl
    extends java.lang.Object
    implements org.apache.pulsar.common.policies.data.PublisherStats
    Statistics about a publisher.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      org.apache.pulsar.client.api.ProducerAccessMode accessMode  
      double averageMsgSize
      Average message size published by this publisher.
      double chunkedMessageRate
      The total rate of chunked messages published by this publisher.
      java.util.Map<java.lang.String,​java.lang.String> metadata
      Metadata (key/value strings) associated with this publisher.
      double msgRateIn
      Total rate of messages published by this publisher (msg/s).
      double msgThroughputIn
      Total throughput of messages published by this publisher (byte/s).
      long producerId
      Id of this publisher.
      boolean supportsPartialProducer
      Whether partial producer is supported at client.
    • Field Detail

      • accessMode

        public org.apache.pulsar.client.api.ProducerAccessMode accessMode
      • msgRateIn

        public double msgRateIn
        Total rate of messages published by this publisher (msg/s).
      • msgThroughputIn

        public double msgThroughputIn
        Total throughput of messages published by this publisher (byte/s).
      • averageMsgSize

        public double averageMsgSize
        Average message size published by this publisher.
      • chunkedMessageRate

        public double chunkedMessageRate
        The total rate of chunked messages published by this publisher.
      • producerId

        public long producerId
        Id of this publisher.
      • supportsPartialProducer

        public boolean supportsPartialProducer
        Whether partial producer is supported at client.
      • metadata

        public java.util.Map<java.lang.String,​java.lang.String> metadata
        Metadata (key/value strings) associated with this publisher.
    • Constructor Detail

      • PublisherStatsImpl

        public PublisherStatsImpl()
    • Method Detail

      • getProducerName

        public java.lang.String getProducerName()
        Specified by:
        getProducerName in interface org.apache.pulsar.common.policies.data.PublisherStats
      • setProducerName

        public void setProducerName​(java.lang.String producerName)
      • getAddress

        public java.lang.String getAddress()
        Specified by:
        getAddress in interface org.apache.pulsar.common.policies.data.PublisherStats
      • setAddress

        public void setAddress​(java.lang.String address)
      • getConnectedSince

        public java.lang.String getConnectedSince()
        Specified by:
        getConnectedSince in interface org.apache.pulsar.common.policies.data.PublisherStats
      • setConnectedSince

        public void setConnectedSince​(java.lang.String connectedSince)
      • getClientVersion

        public java.lang.String getClientVersion()
        Specified by:
        getClientVersion in interface org.apache.pulsar.common.policies.data.PublisherStats
      • setClientVersion

        public void setClientVersion​(java.lang.String clientVersion)