Package | Description |
---|---|
ratpack.health |
Health checks report on the status of key components in the system and are generally used for monitoring and reporting.
|
Modifier and Type | Method and Description |
---|---|
static HealthCheck.Result |
HealthCheck.Result.healthy()
Creates a healthy result, with no message.
|
static HealthCheck.Result |
HealthCheck.Result.healthy(java.lang.String message)
Creates a healthy result, with the given message.
|
static HealthCheck.Result |
HealthCheck.Result.healthy(java.lang.String message,
java.lang.Object... args)
Creates a healthy result, with the given message.
|
static HealthCheck.Result |
HealthCheck.Result.unhealthy(java.lang.String message)
Creates an unhealthy result, with the given message.
|
static HealthCheck.Result |
HealthCheck.Result.unhealthy(java.lang.String message,
java.lang.Object... args)
Creates an unhealthy result, with the given message.
|
static HealthCheck.Result |
HealthCheck.Result.unhealthy(java.lang.String message,
java.lang.Throwable error)
Creates an unhealthy result, with the given exception and message.
|
static HealthCheck.Result |
HealthCheck.Result.unhealthy(java.lang.Throwable error)
Creates an unhealthy result, with the given exception.
|
Modifier and Type | Method and Description |
---|---|
Promise<HealthCheck.Result> |
HealthCheck.check(Registry registry)
Checks the health of the component, providing a promise for the result.
|
ImmutableSortedMap<java.lang.String,HealthCheck.Result> |
HealthCheckResults.getResults()
The results.
|
Modifier and Type | Method and Description |
---|---|
static HealthCheck |
HealthCheck.of(java.lang.String name,
Function<? super Registry,? extends Promise<HealthCheck.Result>> func)
Convenience factory for health check implementations.
|
Constructor and Description |
---|
HealthCheckResults(ImmutableSortedMap<java.lang.String,HealthCheck.Result> results)
Constructor.
|