Package org.jboss.msc.service
Class StabilityStatistics
- java.lang.Object
-
- org.jboss.msc.service.StabilityStatistics
-
public final class StabilityStatistics extends java.lang.Object
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.
- 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 int
getActiveCount()
Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.ACTIVE
mode.int
getFailedCount()
Returns count of controllers registered withStabilityMonitor
that failed to start because of start exception being thrown.int
getLazyCount()
Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.LAZY
mode.int
getNeverCount()
Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.NEVER
mode.int
getOnDemandCount()
Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.ON_DEMAND
mode.int
getPassiveCount()
Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.PASSIVE
mode.int
getProblemsCount()
Returns count of controllers registered withStabilityMonitor
that had problem to start because of missing dependencies.int
getStartedCount()
Returns count of controllers registered withStabilityMonitor
that are inServiceController.State.UP
state.(package private) void
setActiveCount(int count)
(package private) void
setFailedCount(int count)
(package private) void
setLazyCount(int count)
(package private) void
setNeverCount(int count)
(package private) void
setOnDemandCount(int count)
(package private) void
setPassiveCount(int count)
(package private) void
setProblemsCount(int count)
(package private) void
setStartedCount(int count)
-
-
-
Method Detail
-
getActiveCount
public int getActiveCount()
Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.ACTIVE
mode.- Returns:
- count of ACTIVE controllers
-
getFailedCount
public int getFailedCount()
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()
Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.LAZY
mode.- Returns:
- count of LAZY controllers
-
getNeverCount
public int getNeverCount()
Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.NEVER
mode.- Returns:
- count of NEVER controllers
-
getOnDemandCount
public int getOnDemandCount()
Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.ON_DEMAND
mode.- Returns:
- count of ON_DEMAND controllers
-
getPassiveCount
public int getPassiveCount()
Returns count of controllers registered withStabilityMonitor
that are inServiceController.Mode.PASSIVE
mode.- Returns:
- count of PASSIVE controllers
-
getProblemsCount
public int getProblemsCount()
Returns count of controllers registered withStabilityMonitor
that had problem to start because of missing dependencies.- Returns:
- count of PROBLEM controllers
-
getStartedCount
public int getStartedCount()
Returns count of controllers registered withStabilityMonitor
that are inServiceController.State.UP
state.- 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)
-
-