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
@HealthCheck("context-check") public final class ContextHealthCheck extends AbstractHealthCheckHealthCheckthat checks the status of theCamelContextwhether its started or not.
-
-
Constructor Summary
Constructors Constructor Description ContextHealthCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoCall(org.apache.camel.health.HealthCheckResultBuilder builder, Map<String,Object> options)Invoke the health check.booleanisLiveness()-
Methods inherited from class org.apache.camel.impl.health.AbstractHealthCheck
addMetaData, call, call, equals, getCamelContext, getConfiguration, getGroup, getId, getMetaData, hashCode, setCamelContext, setConfiguration
-
-
-
-
Method Detail
-
isLiveness
public boolean isLiveness()
-
doCall
protected void doCall(org.apache.camel.health.HealthCheckResultBuilder builder, Map<String,Object> options)Description copied from class:AbstractHealthCheckInvoke the health check.- Specified by:
doCallin classAbstractHealthCheck
-
-