Package org.jboss.msc.service
Class StabilityStatistics
- java.lang.Object
-
- org.jboss.msc.service.StabilityStatistics
-
public final class StabilityStatistics extends java.lang.ObjectA 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.
- See Also:
StabilityMonitor
- count of controllers in ACTIVE mode - see method
-
-
Constructor Summary
Constructors Constructor Description StabilityStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetActiveCount()Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.ACTIVEmode.intgetFailedCount()Returns count of controllers registered withStabilityMonitorthat failed to start because of start exception being thrown.intgetLazyCount()Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.LAZYmode.intgetNeverCount()Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.NEVERmode.intgetOnDemandCount()Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.ON_DEMANDmode.intgetPassiveCount()Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.PASSIVEmode.intgetProblemsCount()Returns count of controllers registered withStabilityMonitorthat had problem to start because of missing dependencies.intgetStartedCount()Returns count of controllers registered withStabilityMonitorthat are inServiceController.State.UPstate.(package private) voidsetActiveCount(int count)(package private) voidsetFailedCount(int count)(package private) voidsetLazyCount(int count)(package private) voidsetNeverCount(int count)(package private) voidsetOnDemandCount(int count)(package private) voidsetPassiveCount(int count)(package private) voidsetProblemsCount(int count)(package private) voidsetStartedCount(int count)
-
-
-
Method Detail
-
getActiveCount
public int getActiveCount()
Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.ACTIVEmode.- Returns:
- count of ACTIVE controllers
-
getFailedCount
public int getFailedCount()
Returns count of controllers registered withStabilityMonitorthat failed to start because of start exception being thrown.- Returns:
- count of FAILED controllers
-
getLazyCount
public int getLazyCount()
Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.LAZYmode.- Returns:
- count of LAZY controllers
-
getNeverCount
public int getNeverCount()
Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.NEVERmode.- Returns:
- count of NEVER controllers
-
getOnDemandCount
public int getOnDemandCount()
Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.ON_DEMANDmode.- Returns:
- count of ON_DEMAND controllers
-
getPassiveCount
public int getPassiveCount()
Returns count of controllers registered withStabilityMonitorthat are inServiceController.Mode.PASSIVEmode.- Returns:
- count of PASSIVE controllers
-
getProblemsCount
public int getProblemsCount()
Returns count of controllers registered withStabilityMonitorthat had problem to start because of missing dependencies.- Returns:
- count of PROBLEM controllers
-
getStartedCount
public int getStartedCount()
Returns count of controllers registered withStabilityMonitorthat are inServiceController.State.UPstate.- Returns:
- count of STARTED controllers
-
setActiveCount
void setActiveCount(int count)
-
setFailedCount
void setFailedCount(int count)
-
setLazyCount
void setLazyCount(int count)
-
setNeverCount
void setNeverCount(int count)
-
setOnDemandCount
void setOnDemandCount(int count)
-
setPassiveCount
void setPassiveCount(int count)
-
setProblemsCount
void setProblemsCount(int count)
-
setStartedCount
void setStartedCount(int count)
-
-