Class StabilityStatistics

java.lang.Object
org.jboss.msc.service.StabilityStatistics

@Deprecated public final class StabilityStatistics extends Object
Deprecated.
Stability monitors are unreliable - do not use them. This class will be removed in a future release.
A stability monitor statistics. Allows to collect statistics data about ServiceControllers registered with StabilityMonitor object. The following data are available: Sample usage:
 StabilityMonitor monitor = ...
 StabilityStatistics statistics = new StabilityStatistics();
 monitor.awaitStability(statistics);
 // do something with statistics object.
 
Author:
Richard Opalka
See Also:
  • Constructor Details

    • StabilityStatistics

      public StabilityStatistics()
      Deprecated.
  • Method Details

    • getActiveCount

      public int getActiveCount()
      Deprecated.
      Returns count of controllers registered with StabilityMonitor that are in ServiceController.Mode.ACTIVE mode.
      Returns:
      count of ACTIVE controllers
    • getFailedCount

      public int getFailedCount()
      Deprecated.
      Returns count of controllers registered with StabilityMonitor that failed to start because of start exception being thrown.
      Returns:
      count of FAILED controllers
    • getLazyCount

      public int getLazyCount()
      Deprecated.
      Returns count of controllers registered with StabilityMonitor that are in ServiceController.Mode.LAZY mode.
      Returns:
      count of LAZY controllers
    • getNeverCount

      public int getNeverCount()
      Deprecated.
      Returns count of controllers registered with StabilityMonitor that are in ServiceController.Mode.NEVER mode.
      Returns:
      count of NEVER controllers
    • getOnDemandCount

      public int getOnDemandCount()
      Deprecated.
      Returns count of controllers registered with StabilityMonitor that are in ServiceController.Mode.ON_DEMAND mode.
      Returns:
      count of ON_DEMAND controllers
    • getPassiveCount

      public int getPassiveCount()
      Deprecated.
      Returns count of controllers registered with StabilityMonitor that are in ServiceController.Mode.PASSIVE mode.
      Returns:
      count of PASSIVE controllers
    • getProblemsCount

      public int getProblemsCount()
      Deprecated.
      Returns count of controllers registered with StabilityMonitor that had problem to start because of missing dependencies.
      Returns:
      count of PROBLEM controllers
    • getStartedCount

      public int getStartedCount()
      Deprecated.
      Returns count of controllers registered with StabilityMonitor that are in ServiceController.State.UP state.
      Returns:
      count of STARTED controllers