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, wait
getLoad
public int getWeight()
LoadMetricMBean
getWeight
in interface LoadMetricMBean
public void setWeight(int weight)
LoadMetricMBean
setWeight
in interface LoadMetricMBean
public double getCapacity()
LoadMetricMBean
#getLoad()
expressed as a
percentage of the capacity, such that: 0 <= (#getLoad()
/ LoadMetricMBean.getCapacity()
) < 1getCapacity
in interface LoadMetricMBean
public void setCapacity(double capacity)
setCapacity
in interface LoadMetricMBean
Copyright © 2013 JBoss by Red Hat. All rights reserved.