Interface IHealthCheck
- All Superinterfaces:
Runnable
An health check is run on a regular basis, and if the
dispatcher
is interested, generates an event.- Author:
- ActiveViam
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionComputes and creates a new health event for this health check.How computationally intensive this health check is.getLevel()The level of thehealth eventgenerated by this health check.getTags()The tags of thehealth eventgenerated by this health check.default booleanReturns true if this health check has been cancelled and should not be run anymore.default voidrun()
-
Field Details
-
LOGGER
-
-
Method Details
-
getIntensity
ComputationIntensity getIntensity()How computationally intensive this health check is.- Returns:
- An estimate of the computation intensity of this health check.
-
getLevel
Level getLevel()The level of thehealth eventgenerated by this health check.- Returns:
- The level of the
health event.
-
getTags
The tags of thehealth eventgenerated by this health check.- Returns:
- The tags of the
health event.
-
createEvent
IHealthEvent createEvent()Computes and creates a new health event for this health check.The health events level and tags MUST match the ones of this
IHealthCheck.- Returns:
- The newly created health event.
-
run
default void run() -
isCancelled
default boolean isCancelled()Returns true if this health check has been cancelled and should not be run anymore.- Returns:
- true if this health check has been cancelled and should not be run anymore.
-