Class BusyConnectorsLoadMetric

java.lang.Object
org.jboss.modcluster.load.metric.impl.AbstractLoadMetric
org.jboss.modcluster.load.metric.impl.BusyConnectorsLoadMetric
All Implemented Interfaces:
LoadMetric, LoadMetricMBean

public class BusyConnectorsLoadMetric extends AbstractLoadMetric
LoadMetric implementation that returns the total number of busy connector threads.
Author:
Paul Ferraro
  • Constructor Details

    • BusyConnectorsLoadMetric

      public BusyConnectorsLoadMetric()
  • Method Details

    • getLoad

      public double getLoad(Engine engine) throws Exception
      Description copied from interface: LoadMetric
      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.