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, setWeight
public void setPattern(ObjectName pattern)
public void setPattern(String pattern) throws MalformedObjectNameException
MalformedObjectNameException
public void setMBeanServer(MBeanServer server)
protected <T> List<T> getAttributes(String attribute, Class<T> targetClass) throws JMException
JMException
public double getLoad(Engine engine) throws JMException
LoadMetric
JMException
protected abstract double getLoad() throws JMException
JMException
Copyright © 2023 JBoss by Red Hat. All rights reserved.