Class MBeanAttributeRatioLoadMetric
- java.lang.Object
-
- org.jboss.modcluster.load.metric.impl.AbstractLoadMetric
-
- org.jboss.modcluster.load.metric.impl.AbstractMBeanLoadMetric
-
- org.jboss.modcluster.load.metric.impl.MBeanAttributeRatioLoadMetric
-
- All Implemented Interfaces:
LoadMetric
,LoadMetricMBean
public class MBeanAttributeRatioLoadMetric extends AbstractMBeanLoadMetric
GenericLoadMetric
whose load is the ratio of 2 aggregated mbean attributes.- Author:
- Paul Ferraro
-
-
Field Summary
-
Fields inherited from interface org.jboss.modcluster.load.metric.LoadMetric
DEFAULT_CAPACITY, DEFAULT_WEIGHT
-
-
Constructor Summary
Constructors Constructor Description MBeanAttributeRatioLoadMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getLoad()
void
setDividendAttribute(String attribute)
void
setDivisorAttribute(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
-
setDividendAttribute
public void setDividendAttribute(String attribute)
-
setDivisorAttribute
public void setDivisorAttribute(String attribute)
-
getLoad
public double getLoad() throws JMException
- Specified by:
getLoad
in classAbstractMBeanLoadMetric
- Throws:
JMException
-
-