public class HealthCheckResults extends Object
HealthCheckHandler
Constructor and Description |
---|
HealthCheckResults(ImmutableSortedMap<String,HealthCheck.Result> results)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static HealthCheckResults |
empty()
Empty results.
|
ImmutableSortedMap<String,HealthCheck.Result> |
getResults()
The results.
|
boolean |
isUnhealthy()
Whether any result is unhealthy.
|
String |
toString()
Provides a string representation of the results.
|
void |
writeTo(Writer writer)
Writes a string representation of the results to the given writer.
|
public HealthCheckResults(ImmutableSortedMap<String,HealthCheck.Result> results)
results
- the resultspublic static HealthCheckResults empty()
public ImmutableSortedMap<String,HealthCheck.Result> getResults()
public boolean isUnhealthy()
public void writeTo(Writer writer) throws IOException
This object's toString()
provides this representation as a string.
writer
- the writer to write to.IOException
- any thrown by writer