Class HealthCheckDefinition
java.lang.Object
io.vertigo.core.node.definition.AbstractDefinition<HealthCheckDefinition>
io.vertigo.core.analytics.health.definitions.HealthCheckDefinition
- All Implemented Interfaces:
Definition
This defines a health check with
- a definition name
- a health check name
- a checker
- a way to test that provides a HealthMeasure
- Author:
- mlaroche, pchretien
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHealthCheckDefinition(String name, String healthCheckName, String checker, String module, String feature, Supplier<HealthMeasure> checkMethod) Constructor -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class io.vertigo.core.node.definition.AbstractDefinition
idMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertigo.core.node.definition.Definition
getName
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
HealthCheckDefinition
public HealthCheckDefinition(String name, String healthCheckName, String checker, String module, String feature, Supplier<HealthMeasure> checkMethod) Constructor- Parameters:
name- the definition name (must be unique)healthCheckName- the name of the health check (must be unique)checker- the name of the component that is responsible of providing the measurecheckMethod- the check method that provides a health measure
-
-
Method Details
-
getHealthCheckName
- Returns:
- the health check name;
-
getChecker
- Returns:
- the name of the health checker
-
getModule
-
getFeature
-
getCheckMethod
- Returns:
- the check method that provides a health measure
-