Class HealthCheckDefinition

java.lang.Object
io.vertigo.core.node.definition.AbstractDefinition<HealthCheckDefinition>
io.vertigo.core.analytics.health.definitions.HealthCheckDefinition
All Implemented Interfaces:
Definition

public final class HealthCheckDefinition extends AbstractDefinition<HealthCheckDefinition>
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 Details

  • 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 measure
      checkMethod - the check method that provides a health measure
  • Method Details

    • getHealthCheckName

      public String getHealthCheckName()
      Returns:
      the health check name;
    • getChecker

      public String getChecker()
      Returns:
      the name of the health checker
    • getModule

      public String getModule()
    • getFeature

      public String getFeature()
    • getCheckMethod

      public Supplier<HealthMeasure> getCheckMethod()
      Returns:
      the check method that provides a health measure