Package org.jboss.msc.service
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 aboutServiceControllers registered withStabilityMonitorobject. The following data are available:- count of controllers in ACTIVE mode - see method
getActiveCount() - count of controllers that FAILED to start - see method
getFailedCount() - count of controllers in LAZY mode - see method
getLazyCount() - count of controllers in NEVER mode - see method
getNeverCount() - count of controllers in ON_DEMAND mode - see method
getOnDemandCount() - count of controllers in PASSIVE mode - see method
getPassiveCount() - count of controllers that had PROBLEM to start - see method
getProblemsCount() - count of controllers in UP state - see method
getStartedCount()
StabilityMonitor monitor = ... StabilityStatistics statistics = new StabilityStatistics(); monitor.awaitStability(statistics); // do something with statistics object.
- Author:
- Richard Opalka
- See Also:
StabilityMonitor
- count of controllers in ACTIVE mode - see method
-
-
Constructor Summary
Constructors Constructor Description StabilityStatistics()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetActiveCount()Deprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.ACTIVEmode.intgetFailedCount()Deprecated.Returns count of controllers registered withStabilityMonitorthat failed to start because of start exception being thrown.intgetLazyCount()Deprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.LAZYmode.intgetNeverCount()Deprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.NEVERmode.intgetOnDemandCount()Deprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.ON_DEMANDmode.intgetPassiveCount()Deprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.PASSIVEmode.intgetProblemsCount()Deprecated.Returns count of controllers registered withStabilityMonitorthat had problem to start because of missing dependencies.intgetStartedCount()Deprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.State.UPstate.
-
-
-
Method Detail
-
getActiveCount
public int getActiveCount()
Deprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.ACTIVEmode.- Returns:
- count of ACTIVE controllers
-
getFailedCount
public int getFailedCount()
Deprecated.Returns count of controllers registered withStabilityMonitorthat failed to start because of start exception being thrown.- Returns:
- count of FAILED controllers
-
getLazyCount
public int getLazyCount()
Deprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.LAZYmode.- Returns:
- count of LAZY controllers
-
getNeverCount
public int getNeverCount()
Deprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.NEVERmode.- Returns:
- count of NEVER controllers
-
getOnDemandCount
public int getOnDemandCount()
Deprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.ON_DEMANDmode.- Returns:
- count of ON_DEMAND controllers
-
getPassiveCount
public int getPassiveCount()
Deprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.PASSIVEmode.- Returns:
- count of PASSIVE controllers
-
getProblemsCount
public int getProblemsCount()
Deprecated.Returns count of controllers registered withStabilityMonitorthat had problem to start because of missing dependencies.- Returns:
- count of PROBLEM controllers
-
getStartedCount
public int getStartedCount()
Deprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.State.UPstate.- Returns:
- count of STARTED controllers
-
-