public class LocalBrokerData extends Object implements LoadManagerReport
| Modifier and Type | Field and Description |
|---|---|
static String |
loadReportType |
| Constructor and Description |
|---|
LocalBrokerData() |
LocalBrokerData(String webServiceUrl,
String webServiceUrlTls,
String pulsarServiceUrl,
String pulsarServiceUrlTls)
Broker data constructor which takes in four URLs to satisfy the contract of ServiceLookupData.
|
LocalBrokerData(String webServiceUrl,
String webServiceUrlTls,
String pulsarServiceUrl,
String pulsarServiceUrlTls,
Map<String,AdvertisedListener> advertisedListeners) |
public static final String loadReportType
public LocalBrokerData()
public LocalBrokerData(String webServiceUrl, String webServiceUrlTls, String pulsarServiceUrl, String pulsarServiceUrlTls)
public boolean equals(Object o)
public void update(SystemResourceUsage systemResourceUsage, Map<String,NamespaceBundleStats> bundleStats)
systemResourceUsage - System resource usage (cpu, memory, and direct memory).bundleStats - The bundle stats retrieved from the Pulsar client.public void update(LocalBrokerData other)
other - LocalBrokerData to update from.public double getMaxResourceUsage()
public String printResourceUsage()
public double getMaxResourceUsageWithWeight(double cpuWeight,
double memoryWeight,
double directMemoryWeight,
double bandwidthInWeight,
double bandwidthOutWeight)
public String getLoadReportType()
public ResourceUsage getCpu()
getCpu in interface LoadManagerReportpublic void setCpu(ResourceUsage cpu)
public ResourceUsage getMemory()
getMemory in interface LoadManagerReportpublic void setMemory(ResourceUsage memory)
public ResourceUsage getDirectMemory()
getDirectMemory in interface LoadManagerReportpublic void setDirectMemory(ResourceUsage directMemory)
public ResourceUsage getBandwidthIn()
getBandwidthIn in interface LoadManagerReportpublic void setBandwidthIn(ResourceUsage bandwidthIn)
public ResourceUsage getBandwidthOut()
getBandwidthOut in interface LoadManagerReportpublic void setBandwidthOut(ResourceUsage bandwidthOut)
public void cleanDeltas()
public long getLastUpdate()
getLastUpdate in interface LoadManagerReportpublic void setLastUpdate(long lastUpdate)
public Map<String,NamespaceBundleStats> getLastStats()
public void setLastStats(Map<String,NamespaceBundleStats> lastStats)
public int getNumTopics()
getNumTopics in interface LoadManagerReportpublic void setNumTopics(int numTopics)
public int getNumBundles()
getNumBundles in interface LoadManagerReportpublic void setNumBundles(int numBundles)
public int getNumConsumers()
getNumConsumers in interface LoadManagerReportpublic void setNumConsumers(int numConsumers)
public int getNumProducers()
getNumProducers in interface LoadManagerReportpublic void setNumProducers(int numProducers)
public double getMsgThroughputIn()
getMsgThroughputIn in interface LoadManagerReportpublic void setMsgThroughputIn(double msgThroughputIn)
public double getMsgThroughputOut()
getMsgThroughputOut in interface LoadManagerReportpublic void setMsgThroughputOut(double msgThroughputOut)
public double getMsgRateIn()
getMsgRateIn in interface LoadManagerReportpublic void setMsgRateIn(double msgRateIn)
public double getMsgRateOut()
getMsgRateOut in interface LoadManagerReportpublic void setMsgRateOut(double msgRateOut)
public void setBrokerVersionString(String brokerVersionString)
public String getBrokerVersionString()
getBrokerVersionString in interface LoadManagerReportpublic String getWebServiceUrl()
getWebServiceUrl in interface ServiceLookupDatapublic String getWebServiceUrlTls()
getWebServiceUrlTls in interface ServiceLookupDatapublic String getPulsarServiceUrl()
getPulsarServiceUrl in interface ServiceLookupDatapublic String getPulsarServiceUrlTls()
getPulsarServiceUrlTls in interface ServiceLookupDatapublic boolean isPersistentTopicsEnabled()
isPersistentTopicsEnabled in interface LoadManagerReportpublic void setPersistentTopicsEnabled(boolean persistentTopicsEnabled)
public boolean isNonPersistentTopicsEnabled()
isNonPersistentTopicsEnabled in interface LoadManagerReportpublic void setNonPersistentTopicsEnabled(boolean nonPersistentTopicsEnabled)
public Map<String,NamespaceBundleStats> getBundleStats()
getBundleStats in interface LoadManagerReportpublic Map<String,String> getProtocols()
getProtocols in interface ServiceLookupDatapublic Optional<String> getProtocol(String protocol)
getProtocol in interface ServiceLookupDatapublic Map<String,AdvertisedListener> getAdvertisedListeners()
public void setAdvertisedListeners(Map<String,AdvertisedListener> advertisedListeners)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.