public class ReceiveTrafficLoadMetric extends AbstractLoadMetric
LoadMetric
implementation that returns the incoming bandwidth in KB.DEFAULT_CAPACITY, DEFAULT_WEIGHT
Constructor and Description |
---|
ReceiveTrafficLoadMetric() |
ReceiveTrafficLoadMetric(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, setWeight
public ReceiveTrafficLoadMetric()
public ReceiveTrafficLoadMetric(DeterministicLoadState state)
public double getLoad(Engine engine) throws Exception
LoadMetric
Exception
- if the load could not be determined.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.