Class NamespaceUsage
java.lang.Object
org.apache.pulsar.policies.data.loadbalancer.NamespaceUsage
this class represents usages of resources used by a namespace, this is an aggregate of all the topics and queues on
the namespace. The class is designed from load balancing perspective so it only tracks resources that matter to load
Manager and the metrics are calculated how load manager prefers it.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
double
double
double
double
double
double
double
double
long
long
long
long
long
long
void
setActiveSubscribers
(long activeSubscribers) void
setMsgBacklog
(long msgBacklog) void
setMsgNonPersistentRateIn
(double msgNonPersistentRateIn) void
setMsgNonPersistentThroughputIn
(double msgNonPersistentThroughputIn) void
setMsgPersistentRateIn
(double msgPersistentRateIn) void
setMsgPersistentThroughputIn
(double msgPersistentThroughputIn) void
setMsgRateIn
(double msgRateIn) void
setMsgRateOut
(double msgRateOut) void
setMsgThroughputIn
(double msgThroughputIn) void
setMsgThroughputOut
(double msgThroughputOut) void
setStorageSize
(long storageSize) void
setTotalProducers
(long totalProducers) void
setTotalQueues
(long totalQueues) void
setTotalReplicatedClusters
(long totalReplicatedClusters) void
setTotalSubscribers
(long totalSubscribers) void
setTotalTopics
(long totalTopics)
-
Constructor Details
-
NamespaceUsage
public NamespaceUsage()
-
-
Method Details
-
getActiveSubscribers
public long getActiveSubscribers() -
setActiveSubscribers
public void setActiveSubscribers(long activeSubscribers) -
getTotalSubscribers
public long getTotalSubscribers() -
setTotalSubscribers
public void setTotalSubscribers(long totalSubscribers) -
getMsgRateIn
public double getMsgRateIn() -
setMsgRateIn
public void setMsgRateIn(double msgRateIn) -
getMsgThroughputIn
public double getMsgThroughputIn() -
setMsgThroughputIn
public void setMsgThroughputIn(double msgThroughputIn) -
getMsgPersistentRateIn
public double getMsgPersistentRateIn() -
setMsgPersistentRateIn
public void setMsgPersistentRateIn(double msgPersistentRateIn) -
getMsgPersistentThroughputIn
public double getMsgPersistentThroughputIn() -
setMsgPersistentThroughputIn
public void setMsgPersistentThroughputIn(double msgPersistentThroughputIn) -
getMsgNonPersistentRateIn
public double getMsgNonPersistentRateIn() -
setMsgNonPersistentRateIn
public void setMsgNonPersistentRateIn(double msgNonPersistentRateIn) -
getMsgNonPersistentThroughputIn
public double getMsgNonPersistentThroughputIn() -
setMsgNonPersistentThroughputIn
public void setMsgNonPersistentThroughputIn(double msgNonPersistentThroughputIn) -
getMsgRateOut
public double getMsgRateOut() -
setMsgRateOut
public void setMsgRateOut(double msgRateOut) -
getMsgThroughputOut
public double getMsgThroughputOut() -
setMsgThroughputOut
public void setMsgThroughputOut(double msgThroughputOut) -
getMsgBacklog
public long getMsgBacklog() -
setMsgBacklog
public void setMsgBacklog(long msgBacklog) -
getStorageSize
public long getStorageSize() -
setStorageSize
public void setStorageSize(long storageSize) -
getTotalProducers
public long getTotalProducers() -
setTotalProducers
public void setTotalProducers(long totalProducers) -
getTotalReplicatedClusters
public long getTotalReplicatedClusters() -
setTotalReplicatedClusters
public void setTotalReplicatedClusters(long totalReplicatedClusters) -
getTotalQueues
public long getTotalQueues() -
setTotalQueues
public void setTotalQueues(long totalQueues) -
getTotalTopics
public long getTotalTopics() -
setTotalTopics
public void setTotalTopics(long totalTopics)
-