类 ResourceUsage
java.lang.Object
org.apache.pulsar.policies.data.loadbalancer.ResourceUsage
POJO used to represent any system specific resource usage this is the format that load manager expects it in.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intthis may be wrong since we are comparing available and not the usage.float
-
字段详细资料
-
usage
public final double usage -
limit
public final double limit
-
-
构造器详细资料
-
ResourceUsage
public ResourceUsage(double usage, double limit) -
ResourceUsage
public ResourceUsage()
-
-
方法详细资料
-
compareTo
this may be wrong since we are comparing available and not the usage.- 参数:
o-- 返回:
-
percentUsage
public float percentUsage()
-