类 BrokerUsage
java.lang.Object
org.apache.pulsar.policies.data.loadbalancer.BrokerUsage
BrokerUsage
object encapsulates the resources that are only used by broker, for now, it's connections both to
outside JVM and to the local.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明long
long
static BrokerUsage
populateFrom
(Map<String, Object> metrics) Factory method that returns an instance of this class populated from metrics we expect the keys that we are looking there's no explicit type checked object which guarantees that we have a specific type of metrics.void
setConnectionCount
(long connectionCount) void
setReplicationConnectionCount
(long replicationConnectionCount)
-
构造器详细资料
-
BrokerUsage
public BrokerUsage()
-
-
方法详细资料
-
getConnectionCount
public long getConnectionCount() -
getReplicationConnectionCount
public long getReplicationConnectionCount() -
setConnectionCount
public void setConnectionCount(long connectionCount) -
setReplicationConnectionCount
public void setReplicationConnectionCount(long replicationConnectionCount) -
populateFrom
Factory method that returns an instance of this class populated from metrics we expect the keys that we are looking there's no explicit type checked object which guarantees that we have a specific type of metrics.- 参数:
metrics
- metrics object containing the metrics collected per minute from mbeans- 返回:
- new instance of the class populated from metrics
-