Modifier and Type | Method and Description |
---|---|
Status |
CheckResult.getStatus() |
static Status |
Status.KO()
Creates a status when something bad is detected.
|
static Status |
Status.KO(io.vertx.core.json.JsonObject data)
Creates a status when something bad is detected.
|
static Status |
Status.OK()
Creates a status when everything is fine.
|
static Status |
Status.OK(io.vertx.core.json.JsonObject data)
Creates a status when everything is fine and adds metadata.
|
Status |
Status.setData(io.vertx.core.json.JsonObject data)
Sets the metadata.
|
Status |
Status.setKO()
Sets the outcome of the status to KO.
|
Status |
Status.setOK()
Sets the outcome of the status to OK.
|
Status |
Status.setOk(boolean ok)
Sets whether or not the current status is positive (UP) or negative (DOWN).
|
Status |
Status.setProcedureInError(boolean procedureInError)
Sets whether or not the procedure attached to this status has failed (timeout, error...).
|
Modifier and Type | Method and Description |
---|---|
static CheckResult |
CheckResult.from(String name,
Status status) |
static void |
StatusConverter.fromJson(Iterable<Map.Entry<String,Object>> json,
Status obj) |
CheckResult |
CheckResult.setStatus(Status status) |
static void |
StatusConverter.toJson(Status obj,
io.vertx.core.json.JsonObject json) |
static void |
StatusConverter.toJson(Status obj,
Map<String,Object> json) |
Modifier and Type | Method and Description |
---|---|
HealthChecks |
HealthChecks.register(String name,
io.vertx.core.Handler<io.vertx.core.Promise<Status>> procedure)
Registers a health check procedure.
|
HealthCheckHandler |
HealthCheckHandler.register(String name,
io.vertx.core.Handler<io.vertx.core.Promise<Status>> procedure)
Registers a health check procedure.
|
HealthChecks |
HealthChecks.register(String name,
long timeout,
io.vertx.core.Handler<io.vertx.core.Promise<Status>> procedure)
Registers a health check procedure.
|
HealthCheckHandler |
HealthCheckHandler.register(String name,
long timeout,
io.vertx.core.Handler<io.vertx.core.Promise<Status>> procedure)
Registers a health check procedure.
|
Constructor and Description |
---|
Status(Status other)
|
Copyright © 2022 Eclipse. All rights reserved.