Package org.apache.camel.impl.health
Class RouteHealthCheck
java.lang.Object
org.apache.camel.impl.health.AbstractHealthCheck
org.apache.camel.impl.health.RouteHealthCheck
- 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
- Direct Known Subclasses:
ConsumerHealthCheck
HealthCheck for a given route.-
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_CODEFields 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_TIMEFields inherited from interface org.apache.camel.Ordered
HIGHEST, LOWEST -
Constructor Summary
ConstructorsConstructorDescriptionRouteHealthCheck(org.apache.camel.Route route) RouteHealthCheck(org.apache.camel.Route route, String id) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInvoke the health check.protected voiddoCallCheck(org.apache.camel.health.HealthCheckResultBuilder builder, Map<String, Object> options) Additional checksMethods inherited from class org.apache.camel.impl.health.AbstractHealthCheck
addMetaData, call, call, doCall, equals, getCamelContext, getGroup, getId, getMetaData, hashCode, isEnabled, setCamelContext, setEnabledMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.health.HealthCheck
callLiveness, callReadiness, getOrder, isLiveness, isReadiness
-
Constructor Details
-
RouteHealthCheck
public RouteHealthCheck(org.apache.camel.Route route) -
RouteHealthCheck
-
-
Method Details
-
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- See Also:
-
HealthCheck.call(Map)
-
doCallCheck
protected void doCallCheck(org.apache.camel.health.HealthCheckResultBuilder builder, Map<String, Object> options) Additional checks
-