public final class ContextHealthCheck extends AbstractHealthCheck implements CamelContextAware
HealthCheck.Result, HealthCheck.StateCHECK_ENABLED, CHECK_GROUP, CHECK_ID, FAILURE_COUNT, INVOCATION_ATTEMPT_TIME, INVOCATION_COUNT, INVOCATION_TIME| Constructor and Description |
|---|
ContextHealthCheck() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doCall(HealthCheckResultBuilder builder,
Map<String,Object> options)
Invoke the health check.
|
CamelContext |
getCamelContext()
Get the
CamelContext |
void |
setCamelContext(CamelContext camelContext)
Injects the
CamelContext |
addMetaData, call, call, equals, getConfiguration, getGroup, getId, getMetaData, hashCode, setConfigurationclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetOrderpublic ContextHealthCheck()
public CamelContext getCamelContext()
CamelContextAwareCamelContextgetCamelContext in interface CamelContextAwarepublic void setCamelContext(CamelContext camelContext)
CamelContextAwareCamelContextsetCamelContext in interface CamelContextAwarecamelContext - the Camel contextprotected void doCall(HealthCheckResultBuilder builder, Map<String,Object> options)
AbstractHealthCheckdoCall in class AbstractHealthCheckHealthCheck#call(Map)}Apache Camel