public class SendTrafficLoadMetric extends AbstractLoadMetric
LoadMetric implementation that returns the outgoing bandwidth in KB.DEFAULT_CAPACITY, DEFAULT_WEIGHT| Constructor and Description |
|---|
SendTrafficLoadMetric() |
SendTrafficLoadMetric(DeterministicLoadState state) |
| 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, setWeightpublic SendTrafficLoadMetric()
public SendTrafficLoadMetric(DeterministicLoadState state)
public double getLoad(Engine engine) throws Exception
LoadMetricNodeUnavailableException - 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.