Class ConsumerStatsImpl
- java.lang.Object
-
- org.apache.pulsar.common.policies.data.stats.ConsumerStatsImpl
-
- All Implemented Interfaces:
org.apache.pulsar.common.policies.data.ConsumerStats
public class ConsumerStatsImpl extends java.lang.Object implements org.apache.pulsar.common.policies.data.ConsumerStatsConsumer statistics.
-
-
Field Summary
Fields Modifier and Type Field Description intavailablePermitsNumber of available message permits for the consumer.intavgMessagesPerEntryNumber of average messages per entry for the consumer consumed.booleanblockedConsumerOnUnackedMsgsFlag to verify if consumer is blocked due to reaching threshold of unacked messages.longbytesOutCounterTotal bytes delivered to consumer (bytes).doublechunkedMessageRateThe total rate of chunked messages delivered to this consumer.java.lang.StringconsumerNameName of the consumer.java.util.List<java.lang.String>keyHashRangesHash ranges assigned to this consumer if is Key_Shared sub mode.longlastAckedTimestamplonglastConsumedTimestampdoublemessageAckRateTotal rate of message ack(msg/s).java.util.Map<java.lang.String,java.lang.String>metadataMetadata (key/value strings) associated with this consumer.longmsgOutCounterTotal messages delivered to consumer (msg).doublemsgRateOutTotal rate of messages delivered to the consumer (msg/s).doublemsgRateRedeliverTotal rate of messages redelivered by this consumer (msg/s).doublemsgThroughputOutTotal throughput delivered to the consumer (bytes/s).java.lang.StringreadPositionWhenJoiningThe read position of the cursor when the consumer joining.intunackedMessagesNumber of unacknowledged messages for the consumer.
-
Constructor Summary
Constructors Constructor Description ConsumerStatsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsumerStatsImpladd(ConsumerStatsImpl stats)java.lang.StringgetAddress()java.lang.StringgetClientVersion()java.lang.StringgetConnectedSince()java.lang.StringgetReadPositionWhenJoining()voidsetAddress(java.lang.String address)voidsetClientVersion(java.lang.String clientVersion)voidsetConnectedSince(java.lang.String connectedSince)-
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.ConsumerStats
getAvailablePermits, getAvgMessagesPerEntry, getBytesOutCounter, getChunkedMessageRate, getConsumerName, getKeyHashRanges, getLastAckedTimestamp, getLastConsumedTimestamp, getMessageAckRate, getMetadata, getMsgOutCounter, getMsgRateOut, getMsgRateRedeliver, getMsgThroughputOut, getUnackedMessages, isBlockedConsumerOnUnackedMsgs
-
-
-
-
Field Detail
-
msgRateOut
public double msgRateOut
Total rate of messages delivered to the consumer (msg/s).
-
msgThroughputOut
public double msgThroughputOut
Total throughput delivered to the consumer (bytes/s).
-
bytesOutCounter
public long bytesOutCounter
Total bytes delivered to consumer (bytes).
-
msgOutCounter
public long msgOutCounter
Total messages delivered to consumer (msg).
-
msgRateRedeliver
public double msgRateRedeliver
Total rate of messages redelivered by this consumer (msg/s).
-
messageAckRate
public double messageAckRate
Total rate of message ack(msg/s).
-
chunkedMessageRate
public double chunkedMessageRate
The total rate of chunked messages delivered to this consumer.
-
consumerName
public java.lang.String consumerName
Name of the consumer.
-
availablePermits
public int availablePermits
Number of available message permits for the consumer.
-
unackedMessages
public int unackedMessages
Number of unacknowledged messages for the consumer.
-
avgMessagesPerEntry
public int avgMessagesPerEntry
Number of average messages per entry for the consumer consumed.
-
blockedConsumerOnUnackedMsgs
public boolean blockedConsumerOnUnackedMsgs
Flag to verify if consumer is blocked due to reaching threshold of unacked messages.
-
readPositionWhenJoining
public java.lang.String readPositionWhenJoining
The read position of the cursor when the consumer joining.
-
lastAckedTimestamp
public long lastAckedTimestamp
-
lastConsumedTimestamp
public long lastConsumedTimestamp
-
keyHashRanges
public java.util.List<java.lang.String> keyHashRanges
Hash ranges assigned to this consumer if is Key_Shared sub mode.
-
metadata
public java.util.Map<java.lang.String,java.lang.String> metadata
Metadata (key/value strings) associated with this consumer.
-
-
Method Detail
-
add
public ConsumerStatsImpl add(ConsumerStatsImpl stats)
-
getAddress
public java.lang.String getAddress()
- Specified by:
getAddressin interfaceorg.apache.pulsar.common.policies.data.ConsumerStats
-
setAddress
public void setAddress(java.lang.String address)
-
getConnectedSince
public java.lang.String getConnectedSince()
- Specified by:
getConnectedSincein interfaceorg.apache.pulsar.common.policies.data.ConsumerStats
-
setConnectedSince
public void setConnectedSince(java.lang.String connectedSince)
-
getClientVersion
public java.lang.String getClientVersion()
- Specified by:
getClientVersionin interfaceorg.apache.pulsar.common.policies.data.ConsumerStats
-
setClientVersion
public void setClientVersion(java.lang.String clientVersion)
-
getReadPositionWhenJoining
public java.lang.String getReadPositionWhenJoining()
- Specified by:
getReadPositionWhenJoiningin interfaceorg.apache.pulsar.common.policies.data.ConsumerStats
-
-