public final class ContextHealthCheck extends AbstractHealthCheck implements CamelContextAware
HealthCheck.Result, HealthCheck.State
CHECK_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, setConfiguration
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getOrder
public ContextHealthCheck()
public CamelContext getCamelContext()
CamelContextAware
CamelContext
getCamelContext
in interface CamelContextAware
public void setCamelContext(CamelContext camelContext)
CamelContextAware
CamelContext
setCamelContext
in interface CamelContextAware
camelContext
- the Camel contextprotected void doCall(HealthCheckResultBuilder builder, Map<String,Object> options)
AbstractHealthCheck
doCall
in class AbstractHealthCheck
HealthCheck#call(Map)}
Apache Camel