Package org.jboss.msc.service
Class StabilityStatistics
java.lang.Object
org.jboss.msc.service.StabilityStatistics
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:
- 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.ACTIVEmode.intDeprecated.Returns count of controllers registered withStabilityMonitorthat failed to start because of start exception being thrown.intDeprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.LAZYmode.intDeprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.NEVERmode.intDeprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.ON_DEMANDmode.intDeprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.PASSIVEmode.intDeprecated.Returns count of controllers registered withStabilityMonitorthat had problem to start because of missing dependencies.intDeprecated.Returns count of controllers registered withStabilityMonitorthat are inServiceController.State.UPstate.
-
Constructor Details
-
StabilityStatistics
public StabilityStatistics()Deprecated.
-
-
Method Details
-
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
-