public abstract class AbstractLoadMetric extends Object implements LoadMetric
LoadMetric implementation with basic mutators/accessors.DEFAULT_CAPACITY, DEFAULT_WEIGHT| Constructor and Description |
|---|
AbstractLoadMetric() |
| Modifier and Type | Method and Description |
|---|---|
double |
getCapacity()
Returns the load capacity of this metric.
|
int |
getWeight()
Returns the "weight" of this metric, i.e.
|
void |
setCapacity(double capacity) |
void |
setWeight(int weight)
Returns the current load of this metric as a percent of the metric's capacity.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoadpublic int getWeight()
LoadMetricMBeangetWeight in interface LoadMetricMBeanpublic void setWeight(int weight)
LoadMetricMBeansetWeight in interface LoadMetricMBeanpublic double getCapacity()
LoadMetricMBean#getLoad() expressed as a
percentage of the capacity, such that: 0 <= (#getLoad() / LoadMetricMBean.getCapacity()) < 1getCapacity in interface LoadMetricMBeanpublic void setCapacity(double capacity)
setCapacity in interface LoadMetricMBeanCopyright © 2024 JBoss by Red Hat. All rights reserved.