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(String message)
Creates a healthy result, with the given message.
|
static HealthCheck.Result |
HealthCheck.Result.healthy(String message,
Object... args)
Creates a healthy result, with the given message.
|
static HealthCheck.Result |
HealthCheck.Result.unhealthy(String message)
Creates an unhealthy result, with the given message.
|
static HealthCheck.Result |
HealthCheck.Result.unhealthy(String message,
Object... args)
Creates an unhealthy result, with the given message.
|
static HealthCheck.Result |
HealthCheck.Result.unhealthy(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<String,HealthCheck.Result> |
HealthCheckResults.getResults()
The results.
|
Modifier and Type | Method and Description |
---|---|
static HealthCheck |
HealthCheck.of(String name,
Function<? super Registry,? extends Promise<HealthCheck.Result>> func)
Convenience factory for health check implementations.
|
Constructor and Description |
---|
HealthCheckResults(ImmutableSortedMap<String,HealthCheck.Result> results)
Constructor.
|