public class AverageSystemLoadMetric extends AbstractLoadMetric
OperatingSystemMXBean.getSystemLoadAverage() to calculate average system load. Only supported on Java 1.6 or
later.DEFAULT_CAPACITY, DEFAULT_WEIGHT| Constructor and Description |
|---|
AverageSystemLoadMetric() |
AverageSystemLoadMetric(OperatingSystemMXBean bean) |
| Modifier and Type | Method and Description |
|---|---|
double |
getLoad(Engine engine)
Returns the current load of this metric as a percent of the metric's capacity.
|
getCapacity, getWeight, setCapacity, setWeightpublic AverageSystemLoadMetric()
public AverageSystemLoadMetric(OperatingSystemMXBean bean)
public double getLoad(Engine engine) throws Exception
LoadMetricException - if the load could not be determined.Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.