JBoss Modular Service Container 1.1.0.Beta3

org.jboss.msc.service
Class StabilityStatistics

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

public final class StabilityStatistics
extends Object

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:
StabilityMonitor

Constructor Summary
StabilityStatistics()
           
 
Method Summary
 int getActiveCount()
          Returns count of controllers registered with StabilityMonitor that are in ServiceController.Mode.ACTIVE mode.
 int getFailedCount()
          Returns count of controllers registered with StabilityMonitor that failed to start because of start exception being thrown.
 int getLazyCount()
          Returns count of controllers registered with StabilityMonitor that are in ServiceController.Mode.LAZY mode.
 int getNeverCount()
          Returns count of controllers registered with StabilityMonitor that are in ServiceController.Mode.NEVER mode.
 int getOnDemandCount()
          Returns count of controllers registered with StabilityMonitor that are in ServiceController.Mode.ON_DEMAND mode.
 int getPassiveCount()
          Returns count of controllers registered with StabilityMonitor that are in ServiceController.Mode.PASSIVE mode.
 int getProblemsCount()
          Returns count of controllers registered with StabilityMonitor that had problem to start because of missing dependencies.
 int getRemovedCount()
          Returns count of controllers registered with StabilityMonitor that are in ServiceController.Mode.REMOVE mode.
 int getStartedCount()
          Returns count of controllers registered with StabilityMonitor that are in ServiceController.State.UP state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StabilityStatistics

public StabilityStatistics()
Method Detail

getActiveCount

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

Returns:
count of ACTIVE controllers

getFailedCount

public int getFailedCount()
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()
Returns count of controllers registered with StabilityMonitor that are in ServiceController.Mode.LAZY mode.

Returns:
count of LAZY controllers

getNeverCount

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

Returns:
count of NEVER controllers

getOnDemandCount

public int getOnDemandCount()
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()
Returns count of controllers registered with StabilityMonitor that are in ServiceController.Mode.PASSIVE mode.

Returns:
count of PASSIVE controllers

getProblemsCount

public int getProblemsCount()
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()
Returns count of controllers registered with StabilityMonitor that are in ServiceController.State.UP state.

Returns:
count of STARTED controllers

getRemovedCount

public int getRemovedCount()
Returns count of controllers registered with StabilityMonitor that are in ServiceController.Mode.REMOVE mode.

Returns:
count of REMOVE controllers

JBoss Modular Service Container 1.1.0.Beta3

Copyright © 2012 JBoss, a division of Red Hat, Inc.