public interface LoadMetric extends LoadMetricMBean
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_CAPACITY |
static int |
DEFAULT_WEIGHT |
Modifier and Type | Method and Description |
---|---|
double |
getLoad(Engine engine)
Returns the current load of this metric as a percent of the metric's capacity.
|
getCapacity, getWeight, setCapacity, setWeight
static final double DEFAULT_CAPACITY
static final int DEFAULT_WEIGHT
double getLoad(Engine engine) throws Exception
NodeUnavailableException
- if the node should be put into the error state.Exception
- if the load could not be determined.Copyright © 2023 JBoss by Red Hat. All rights reserved.