Class AverageSystemLoadMetric
java.lang.Object
org.jboss.modcluster.load.metric.impl.AbstractLoadMetric
org.jboss.modcluster.load.metric.impl.AverageSystemLoadMetric
- All Implemented Interfaces:
LoadMetric
,LoadMetricMBean
Uses
OperatingSystemMXBean.getSystemLoadAverage()
to calculate average system load.- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.jboss.modcluster.load.metric.LoadMetric
DEFAULT_CAPACITY, DEFAULT_WEIGHT
-
Constructor Summary
ConstructorDescription -
Method Summary
Methods inherited from class org.jboss.modcluster.load.metric.impl.AbstractLoadMetric
getCapacity, getWeight, setCapacity, setWeight
-
Constructor Details
-
AverageSystemLoadMetric
public AverageSystemLoadMetric() -
AverageSystemLoadMetric
-
-
Method Details
-
getLoad
Description copied from interface:LoadMetric
Returns the current load of this metric as a percent of the metric's capacity.- Returns:
- raw load / capacity.
- Throws:
NodeUnavailableException
- if the node should be put into the error state.Exception
- if the load could not be determined.
-