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 aboutServiceController
s registered withStabilityMonitor
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:
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 int
getActiveCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.ACTIVE
mode.int
getFailedCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
that failed to start because of start exception being thrown.int
getLazyCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.LAZY
mode.int
getNeverCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.NEVER
mode.int
getOnDemandCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.ON_DEMAND
mode.int
getPassiveCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.PASSIVE
mode.int
getProblemsCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
that had problem to start because of missing dependencies.int
getStartedCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
that are inServiceController.State.UP
state.
-
-
-
Method Detail
-
getActiveCount
public int getActiveCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.ACTIVE
mode.- Returns:
- count of ACTIVE controllers
-
getFailedCount
public int getFailedCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
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 withStabilityMonitor
that are inServiceController.Mode.LAZY
mode.- Returns:
- count of LAZY controllers
-
getNeverCount
public int getNeverCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.NEVER
mode.- Returns:
- count of NEVER controllers
-
getOnDemandCount
public int getOnDemandCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.ON_DEMAND
mode.- Returns:
- count of ON_DEMAND controllers
-
getPassiveCount
public int getPassiveCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.PASSIVE
mode.- Returns:
- count of PASSIVE controllers
-
getProblemsCount
public int getProblemsCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
that had problem to start because of missing dependencies.- Returns:
- count of PROBLEM controllers
-
getStartedCount
public int getStartedCount()
Deprecated.Returns count of controllers registered withStabilityMonitor
that are inServiceController.State.UP
state.- Returns:
- count of STARTED controllers
-
-