public interface IServiceStatistics extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getInfo()
Return service statistics, if any.
|
boolean |
isAlive()
Query whether the service is alive.
|
boolean |
isHealthy()
Query wether the service is "healthy".
|
void |
setAlive(boolean alive)
Set the "aliveness" of the service.
|
void |
setHealthy(boolean healthy)
Set the "health" of the service.
|
void |
setInfo(String info)
Set the monitor statistics for the service.
|
boolean isAlive()
boolean isHealthy()
String getInfo()
void setAlive(boolean alive)
alive
- Set to "true" if the service is responseve, "false" otherwise.void setHealthy(boolean healthy)
healthy
- Set to "true" if the service is healthy, "false" otherwise.void setInfo(String info)
info
- This is an arbitrary string summarizing the service's performance.Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.