Class NamespaceBundleStats
- java.lang.Object
-
- org.apache.pulsar.policies.data.loadbalancer.NamespaceBundleStats
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NamespaceBundleStats>
public class NamespaceBundleStats extends java.lang.Object implements java.lang.Comparable<NamespaceBundleStats>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description longcacheSizeintconsumerCountdoublemsgRateIndoublemsgRateOutdoublemsgThroughputIndoublemsgThroughputOutintproducerCountlongtopics
-
Constructor Summary
Constructors Constructor Description NamespaceBundleStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareByBandwidthIn(NamespaceBundleStats other)intcompareByBandwidthOut(NamespaceBundleStats other)intcompareByCacheSize(NamespaceBundleStats other)intcompareByMsgRate(NamespaceBundleStats other)intcompareByTopicConnections(NamespaceBundleStats other)intcompareTo(NamespaceBundleStats other)voidreset()
-
-
-
Field Detail
-
msgRateIn
public double msgRateIn
-
msgThroughputIn
public double msgThroughputIn
-
msgRateOut
public double msgRateOut
-
msgThroughputOut
public double msgThroughputOut
-
consumerCount
public int consumerCount
-
producerCount
public int producerCount
-
topics
public long topics
-
cacheSize
public long cacheSize
-
-
Method Detail
-
reset
public void reset()
-
compareTo
public int compareTo(NamespaceBundleStats other)
- Specified by:
compareToin interfacejava.lang.Comparable<NamespaceBundleStats>
-
compareByMsgRate
public int compareByMsgRate(NamespaceBundleStats other)
-
compareByTopicConnections
public int compareByTopicConnections(NamespaceBundleStats other)
-
compareByCacheSize
public int compareByCacheSize(NamespaceBundleStats other)
-
compareByBandwidthIn
public int compareByBandwidthIn(NamespaceBundleStats other)
-
compareByBandwidthOut
public int compareByBandwidthOut(NamespaceBundleStats other)
-
-