public final class StabilityStatistics
extends java.lang.Object
ServiceControllers 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| Modifier and Type | Field and Description |
|---|---|
private int |
active |
private int |
failed |
private int |
lazy |
private int |
never |
private int |
onDemand |
private int |
passive |
private int |
problems |
private int |
started |
| 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. |
(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) |
private int active
private int failed
private int lazy
private int never
private int onDemand
private int passive
private int problems
private int started
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.void setActiveCount(int count)
void setFailedCount(int count)
void setLazyCount(int count)
void setNeverCount(int count)
void setOnDemandCount(int count)
void setPassiveCount(int count)
void setProblemsCount(int count)
void setStartedCount(int count)