| Modifier and Type | Method and Description |
|---|---|
HealthcheckStatus |
Healthcheck.check()
return healthy/unhealthy status of the service
|
static HealthcheckStatus |
HealthcheckStatus.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HealthcheckStatus[] |
HealthcheckStatus.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
HealthcheckStatus |
ServiceHealthAggregator.check() |
HealthcheckStatus |
ServiceHealthAggregator.getServiceHealth()
aggregate all registered (enabled) monitors, collect individual monitor healths, and aggregate them accordingly
|
| Modifier and Type | Method and Description |
|---|---|
void |
ServiceHealthAggregator.addInlineMonitor(Monitor<HealthcheckStatus> monitor)
this method can be used to add a
Monitor
this monitor will not be scheduled in a separate isolated thread,
but instead its execution will happen inline, in a single thread, along with other inline monitors |
void |
ServiceHealthAggregator.addIsolatedMonitor(IsolatedHealthMonitor<HealthcheckStatus> monitor)
this method can be used to add a
IsolatedHealthMonitor which will later be
scheduled at regular intervals and monitored to generate and maintain an aggregated health of the service
the scheduling will happen in an isolated thread |
| Modifier and Type | Method and Description |
|---|---|
static Monitor<HealthcheckStatus> |
Monitors.defaultHealthyMonitor() |
static Monitor<HealthcheckStatus> |
Monitors.fileExistenceCheckMonitor(String filePath) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RollingWindowHealthQueue.checkInRollingWindow(HealthcheckStatus currentHealthStatus)
dequeues the latest incoming status, enqueues the latest health status
updates the failure counts accordingly
|
| Modifier and Type | Method and Description |
|---|---|
HealthcheckStatus |
RotationStatusMonitor.monitor()
checks if the rotation file exists or not
|
HealthcheckStatus |
CountMonitor.monitor() |
HealthcheckStatus |
PingCheckMonitor.monitor() |
| Modifier and Type | Method and Description |
|---|---|
B |
BaseServiceProviderBuilder.withIsolatedHealthMonitor(IsolatedHealthMonitor<HealthcheckStatus> monitor)
Register a monitor to the service, to set up a continuous monitoring on the monitor
this method can be used to add a
IsolatedHealthMonitor which will later be
scheduled at regular intervals and monitored to generate and maintain an aggregated health of the service
the scheduling will happen in an isolated thread |
Copyright © 2015–2022. All rights reserved.