Class AbstractMBeanLoadMetric
java.lang.Object
org.jboss.modcluster.load.metric.impl.AbstractLoadMetric
org.jboss.modcluster.load.metric.impl.AbstractMBeanLoadMetric
- All Implemented Interfaces:
LoadMetric
,LoadMetricMBean
- Direct Known Subclasses:
MBeanAttributeLoadMetric
,MBeanAttributeRatioLoadMetric
-
Field Summary
Fields inherited from interface org.jboss.modcluster.load.metric.LoadMetric
DEFAULT_CAPACITY, DEFAULT_WEIGHT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> List<T>
getAttributes
(String attribute, Class<T> targetClass) protected abstract double
getLoad()
double
Returns the current load of this metric as a percent of the metric's capacity.void
setMBeanServer
(MBeanServer server) void
setPattern
(String pattern) void
setPattern
(ObjectName pattern) Methods inherited from class org.jboss.modcluster.load.metric.impl.AbstractLoadMetric
getCapacity, getWeight, setCapacity, setWeight
-
Constructor Details
-
AbstractMBeanLoadMetric
public AbstractMBeanLoadMetric()
-
-
Method Details
-
setPattern
-
setPattern
- Throws:
MalformedObjectNameException
-
setMBeanServer
-
getAttributes
- Throws:
JMException
-
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:
JMException
-
getLoad
- Throws:
JMException
-