Class ContextHealthCheck

java.lang.Object
org.apache.camel.impl.health.AbstractHealthCheck
org.apache.camel.impl.health.ContextHealthCheck
All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.health.HealthCheck, org.apache.camel.Ordered, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.HasGroup, org.apache.camel.spi.HasId

@HealthCheck("context-check") public final class ContextHealthCheck extends AbstractHealthCheck
HealthCheck that checks the status of the CamelContext whether its started or not.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.camel.health.HealthCheck

    org.apache.camel.health.HealthCheck.Kind, org.apache.camel.health.HealthCheck.Result, org.apache.camel.health.HealthCheck.State
  • Field Summary

    Fields inherited from class org.apache.camel.impl.health.AbstractHealthCheck

    SERVICE_ERROR_CODE, SERVICE_STATUS_CODE

    Fields inherited from interface org.apache.camel.health.HealthCheck

    CHECK_ENABLED, CHECK_GROUP, CHECK_ID, CHECK_KIND, ENDPOINT_URI, FAILURE_COUNT, FAILURE_ERROR_COUNT, FAILURE_START_TIME, FAILURE_TIME, HTTP_RESPONSE_CODE, INVOCATION_COUNT, INVOCATION_TIME, SUCCESS_COUNT, SUCCESS_START_TIME, SUCCESS_TIME

    Fields inherited from interface org.apache.camel.Ordered

    HIGHEST, LOWEST
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doCall(org.apache.camel.health.HealthCheckResultBuilder builder, Map<String,Object> options)
    Invoke the health check.
    int
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.camel.health.HealthCheck

    callLiveness, callReadiness, isReadiness
  • Constructor Details

    • ContextHealthCheck

      public ContextHealthCheck()
  • Method Details

    • getOrder

      public int getOrder()
    • isLiveness

      public boolean isLiveness()
    • doCall

      protected void doCall(org.apache.camel.health.HealthCheckResultBuilder builder, Map<String,Object> options)
      Description copied from class: AbstractHealthCheck
      Invoke the health check.
      Specified by:
      doCall in class AbstractHealthCheck
      See Also:
      • HealthCheck.call(Map)