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