Package org.jboss.modcluster.load.metric
Interface LoadMetric
- All Superinterfaces:
LoadMetricMBean
- All Known Implementing Classes:
AbstractLoadMetric,AbstractMBeanLoadMetric,ActiveSessionsLoadMetric,AverageSystemLoadMetric,BusyConnectorsLoadMetric,HeapMemoryUsageLoadMetric,MBeanAttributeLoadMetric,MBeanAttributeRatioLoadMetric,ReceiveTrafficLoadMetric,RequestCountLoadMetric,SendTrafficLoadMetric
Represents a specific load metric.
- Author:
- Paul Ferraro
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final int -
Method Summary
Methods inherited from interface org.jboss.modcluster.load.metric.LoadMetricMBean
getCapacity, getWeight, setCapacity, setWeight
-
Field Details
-
DEFAULT_CAPACITY
static final double DEFAULT_CAPACITY- See Also:
-
DEFAULT_WEIGHT
static final int DEFAULT_WEIGHT- See Also:
-
-
Method Details
-
getLoad
Returns the current load of this metric as a percent of the metric's capacity.- Returns:
- raw load / capacity.
- Throws:
NodeUnavailableException- if the node should be put into the error state.Exception- if the load could not be determined.
-