Package org.apache.camel.impl.health
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.HasGroup
,org.apache.camel.spi.HasId
@JdkService("context-health-check") public final class ContextHealthCheck extends AbstractHealthCheck implements org.apache.camel.CamelContextAware
HealthCheck
that checks the status of theCamelContext
whether its started or not.
-
-
Field Summary
-
Fields inherited from class org.apache.camel.impl.health.AbstractHealthCheck
CHECK_ENABLED, CHECK_GROUP, CHECK_ID, FAILURE_COUNT, INVOCATION_ATTEMPT_TIME, INVOCATION_COUNT, INVOCATION_TIME
-
-
Constructor Summary
Constructors Constructor Description ContextHealthCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doCall(org.apache.camel.health.HealthCheckResultBuilder builder, Map<String,Object> options)
Invoke the health check.org.apache.camel.CamelContext
getCamelContext()
boolean
isLiveness()
void
setCamelContext(org.apache.camel.CamelContext camelContext)
-
Methods inherited from class org.apache.camel.impl.health.AbstractHealthCheck
addMetaData, call, call, equals, getConfiguration, getGroup, getId, getMetaData, hashCode, setConfiguration
-
-
-
-
Method Detail
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
isLiveness
public boolean isLiveness()
- Specified by:
isLiveness
in interfaceorg.apache.camel.health.HealthCheck
-
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 classAbstractHealthCheck
-
-