Class MBeanAttributeLoadMetric
- java.lang.Object
-
- org.jboss.modcluster.load.metric.impl.AbstractLoadMetric
-
- org.jboss.modcluster.load.metric.impl.AbstractMBeanLoadMetric
-
- org.jboss.modcluster.load.metric.impl.MBeanAttributeLoadMetric
-
- All Implemented Interfaces:
LoadMetric
,LoadMetricMBean
public class MBeanAttributeLoadMetric extends AbstractMBeanLoadMetric
GenericLoadMetric
whose load is the aggregated value of an mbean attribute.- Author:
- Paul Ferraro
-
-
Field Summary
-
Fields inherited from interface org.jboss.modcluster.load.metric.LoadMetric
DEFAULT_CAPACITY, DEFAULT_WEIGHT
-
-
Constructor Summary
Constructors Constructor Description MBeanAttributeLoadMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
getLoad()
void
setAttribute(String attribute)
-
Methods inherited from class org.jboss.modcluster.load.metric.impl.AbstractMBeanLoadMetric
getAttributes, getLoad, setMBeanServer, setPattern, setPattern
-
Methods inherited from class org.jboss.modcluster.load.metric.impl.AbstractLoadMetric
getCapacity, getWeight, setCapacity, setWeight
-
-
-
-
Method Detail
-
setAttribute
public void setAttribute(String attribute)
-
getLoad
protected double getLoad() throws JMException
- Specified by:
getLoad
in classAbstractMBeanLoadMetric
- Throws:
JMException
-
-