public final class StabilityStatistics extends Object
ServiceController
s registered with StabilityMonitor
object.
The following data are available:
getActiveCount()
getFailedCount()
getLazyCount()
getNeverCount()
getOnDemandCount()
getPassiveCount()
getProblemsCount()
getStartedCount()
StabilityMonitor monitor = ... StabilityStatistics statistics = new StabilityStatistics(); monitor.awaitStability(statistics); // do something with statistics object.
StabilityMonitor
Constructor and Description |
---|
StabilityStatistics() |
Modifier and Type | Method and Description |
---|---|
int |
getActiveCount()
Returns count of controllers registered with
StabilityMonitor that are in
ServiceController.Mode.ACTIVE mode. |
int |
getFailedCount()
Returns count of controllers registered with
StabilityMonitor that failed to start
because of start exception being thrown. |
int |
getLazyCount()
Returns count of controllers registered with
StabilityMonitor that are in
ServiceController.Mode.LAZY mode. |
int |
getNeverCount()
Returns count of controllers registered with
StabilityMonitor that are in
ServiceController.Mode.NEVER mode. |
int |
getOnDemandCount()
Returns count of controllers registered with
StabilityMonitor that are in
ServiceController.Mode.ON_DEMAND mode. |
int |
getPassiveCount()
Returns count of controllers registered with
StabilityMonitor that are in
ServiceController.Mode.PASSIVE mode. |
int |
getProblemsCount()
Returns count of controllers registered with
StabilityMonitor that had problem to start
because of missing dependencies. |
int |
getStartedCount()
Returns count of controllers registered with
StabilityMonitor that are in
ServiceController.State.UP state. |
public int getActiveCount()
StabilityMonitor
that are in
ServiceController.Mode.ACTIVE
mode.public int getFailedCount()
StabilityMonitor
that failed to start
because of start exception being thrown.public int getLazyCount()
StabilityMonitor
that are in
ServiceController.Mode.LAZY
mode.public int getNeverCount()
StabilityMonitor
that are in
ServiceController.Mode.NEVER
mode.public int getOnDemandCount()
StabilityMonitor
that are in
ServiceController.Mode.ON_DEMAND
mode.public int getPassiveCount()
StabilityMonitor
that are in
ServiceController.Mode.PASSIVE
mode.public int getProblemsCount()
StabilityMonitor
that had problem to start
because of missing dependencies.public int getStartedCount()
StabilityMonitor
that are in
ServiceController.State.UP
state.Copyright © 2018 JBoss by Red Hat. All rights reserved.