pub struct NoOpComponentContext;Expand description
Default no-op component context for tests/examples.
Trait Implementations§
Source§impl ComponentContext for NoOpComponentContext
impl ComponentContext for NoOpComponentContext
Source§fn resolve_component(&self, _scheme: &str) -> Option<Arc<dyn Component>>
fn resolve_component(&self, _scheme: &str) -> Option<Arc<dyn Component>>
Resolve a component by scheme.
Source§fn resolve_language(&self, _name: &str) -> Option<Arc<dyn Language>>
fn resolve_language(&self, _name: &str) -> Option<Arc<dyn Language>>
Resolve a language by name.
Source§fn platform_service(&self) -> Arc<dyn PlatformService> ⓘ
fn platform_service(&self) -> Arc<dyn PlatformService> ⓘ
Access the active platform service.
fn register_route_health_check( &self, _route_id: &str, _check: Arc<dyn AsyncHealthCheck>, )
fn unregister_route_health_check(&self, _route_id: &str)
Source§fn in_flight_counter(&self) -> Option<Arc<InFlightGauge>>
fn in_flight_counter(&self) -> Option<Arc<InFlightGauge>>
Context-global gauge of accepted-not-completed exchanges
(drainclaim). Production contexts return the gauge installed on
every
ConsumerContext at consumer start and read by
CamelContext::total_in_flight() for the drain verdict. Default
None keeps test contexts uncounted.Source§fn component_metric_levers(&self) -> ComponentMetricsLevers
fn component_metric_levers(&self) -> ComponentMetricsLevers
Snapshot of the
[observability.metrics].components configuration —
resolved per component by
RuntimeObservability::component_metrics(component). The scoped
identity (not a global bool) lets an override enable one component
series while the coarse components default stays off. Read moreSource§fn health(&self) -> Arc<dyn HealthCheckRegistry> ⓘ
fn health(&self) -> Arc<dyn HealthCheckRegistry> ⓘ
Access the active health-check registry. Read more
Source§fn shutdown_token(&self) -> Option<CancellationToken>
fn shutdown_token(&self) -> Option<CancellationToken>
Clone of the Runtime-owned shutdown token when this context is
bound to one. Producer-side and processor-side code (which has no
ConsumerContext) uses it to observe Runtime shutdown.
CamelContext overrides this with its shutdown_token(). Default
None keeps unbound contexts (tests, examples) out of the
shutdown lineage, so callers mint a local root token instead.
Callers resolve this per call: CamelContext replaces its shutdown
token on every start, so a token captured once goes stale across
stop/start. Read morefn route_id(&self) -> Option<&str>
fn register_current_route_health_check(&self, check: Arc<dyn AsyncHealthCheck>)
Auto Trait Implementations§
impl Freeze for NoOpComponentContext
impl RefUnwindSafe for NoOpComponentContext
impl Send for NoOpComponentContext
impl Sync for NoOpComponentContext
impl Unpin for NoOpComponentContext
impl UnsafeUnpin for NoOpComponentContext
impl UnwindSafe for NoOpComponentContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> RuntimeObservability for Twhere
T: ComponentContext,
impl<T> RuntimeObservability for Twhere
T: ComponentContext,
Source§fn metrics(&self) -> Arc<dyn MetricsCollector> ⓘ
fn metrics(&self) -> Arc<dyn MetricsCollector> ⓘ
Active metrics collector. Used for
increment_errors(route_id, label)
per ADR-0012 categories (b′) and (e).Source§fn health(&self) -> Arc<dyn HealthCheckRegistry> ⓘ
fn health(&self) -> Arc<dyn HealthCheckRegistry> ⓘ
Active health-check registry. Used for
force_unhealthy_for_route(route_id, name, reason) per ADR-0012
category (g).Source§fn component_metrics(&self, component: &str) -> ComponentMetrics
fn component_metrics(&self, component: &str) -> ComponentMetrics
Facade for the uniform component-operations family
(
camel_component_operations_total{component,operation,outcome},
dashboard-observability Task 4.1), scoped to component so the
handle carries both the identity and the resolved switch. Read moreSource§fn in_flight_counter(&self) -> Option<Arc<InFlightGauge>>
fn in_flight_counter(&self) -> Option<Arc<InFlightGauge>>
Context-global gauge of accepted-not-completed exchanges
(drainclaim), forwarded from
ComponentContext::in_flight_counter.
Default None keeps runtimes that install no gauge uncounted.