public abstract class AbstractMBeanLoadMetric extends AbstractLoadMetric
DEFAULT_CAPACITY, DEFAULT_WEIGHT| Constructor and Description |
|---|
AbstractMBeanLoadMetric() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> List<T> |
getAttributes(String attribute,
Class<T> targetClass) |
protected abstract double |
getLoad() |
double |
getLoad(Engine engine)
Returns the current load of this metric as a percent of the metric's capacity.
|
void |
setMBeanServer(MBeanServer server) |
void |
setPattern(ObjectName pattern) |
void |
setPattern(String pattern) |
getCapacity, getWeight, setCapacity, setWeightpublic void setPattern(ObjectName pattern)
public void setPattern(String pattern) throws MalformedObjectNameException
MalformedObjectNameExceptionpublic void setMBeanServer(MBeanServer server)
protected <T> List<T> getAttributes(String attribute, Class<T> targetClass) throws JMException
JMExceptionpublic double getLoad(Engine engine) throws JMException
LoadMetricJMExceptionprotected abstract double getLoad()
throws JMException
JMExceptionCopyright © 2023 JBoss by Red Hat. All rights reserved.