public abstract class AbstractProcessorComponent extends Object implements ProcessorComponent
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractProcessorComponent.ContextMapGetter |
| Modifier and Type | Field and Description |
|---|---|
protected org.mule.runtime.api.component.location.ConfigurationComponentLocator |
configurationComponentLocator |
static String |
FLOW |
static String |
NAMESPACE_MULE |
| Constructor and Description |
|---|
AbstractProcessorComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTagIfPresent(Map<String,String> sourceMap,
String sourceKey,
Map<String,String> targetMap,
String targetKey) |
boolean |
canHandle(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier) |
protected <A> Map<String,String> |
getAttributes(org.mule.runtime.api.component.Component component,
org.mule.runtime.api.metadata.TypedValue<A> attributes) |
protected TraceComponent |
getBaseTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification) |
protected String |
getDefaultSpanName(Map<String,String> tags) |
TraceComponent |
getEndTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification)
Build a
TraceComponent for end of a flow-like container or a message
processor. |
protected abstract String |
getNamespace() |
protected abstract List<String> |
getOperations() |
protected Map<String,String> |
getProcessorCommonTags(org.mule.runtime.api.component.Component component) |
protected Optional<org.mule.runtime.api.component.Component> |
getSourceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification) |
protected org.mule.runtime.api.component.ComponentIdentifier |
getSourceIdentifier(org.mule.runtime.api.notification.EnrichedServerNotification notification) |
protected abstract List<String> |
getSources() |
protected io.opentelemetry.api.trace.SpanKind |
getSpanKind() |
TraceComponent |
getStartTraceComponent(org.mule.runtime.api.component.Component component,
org.mule.runtime.api.event.Event event)
Create a start trace component without the notification object.
|
TraceComponent |
getStartTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification)
Build a
TraceComponent for start of a flow-like container or a
message processor. |
protected TraceComponent |
getTraceComponentBuilderFor(org.mule.runtime.api.notification.EnrichedServerNotification notification) |
protected String |
getTransactionId(org.mule.runtime.api.notification.EnrichedServerNotification notification) |
protected boolean |
namespaceSupported(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier) |
protected boolean |
operationSupported(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier) |
protected boolean |
sourceSupported(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier) |
ProcessorComponent |
withConfigurationComponentLocator(org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSourceEndTraceComponent, getSourceStartTraceComponentpublic static final String NAMESPACE_MULE
public static final String FLOW
protected org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator
public ProcessorComponent withConfigurationComponentLocator(org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator)
withConfigurationComponentLocator in interface ProcessorComponentprotected abstract String getNamespace()
protected io.opentelemetry.api.trace.SpanKind getSpanKind()
public boolean canHandle(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
canHandle in interface ProcessorComponentprotected boolean namespaceSupported(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
protected boolean operationSupported(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
protected boolean sourceSupported(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
public TraceComponent getEndTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification)
ProcessorComponentTraceComponent for end of a flow-like container or a message
processor.
This may need light processing compared to
ProcessorComponent.getStartTraceComponent(EnrichedServerNotification).getEndTraceComponent in interface ProcessorComponentnotification - EnrichedServerNotificationTraceComponentprotected TraceComponent getTraceComponentBuilderFor(org.mule.runtime.api.notification.EnrichedServerNotification notification)
protected TraceComponent getBaseTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification)
protected String getTransactionId(org.mule.runtime.api.notification.EnrichedServerNotification notification)
protected Map<String,String> getProcessorCommonTags(org.mule.runtime.api.component.Component component)
protected org.mule.runtime.api.component.ComponentIdentifier getSourceIdentifier(org.mule.runtime.api.notification.EnrichedServerNotification notification)
protected <A> Map<String,String> getAttributes(org.mule.runtime.api.component.Component component, org.mule.runtime.api.metadata.TypedValue<A> attributes)
public TraceComponent getStartTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification)
ProcessorComponentTraceComponent for start of a flow-like container or a
message processor.getStartTraceComponent in interface ProcessorComponentnotification - EnrichedServerNotificationTraceComponentpublic TraceComponent getStartTraceComponent(org.mule.runtime.api.component.Component component, org.mule.runtime.api.event.Event event)
getStartTraceComponent in interface ProcessorComponentcomponent - Componentevent - Messageprotected void addTagIfPresent(Map<String,String> sourceMap, String sourceKey, Map<String,String> targetMap, String targetKey)
protected Optional<org.mule.runtime.api.component.Component> getSourceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification)
Copyright © 2024 AVIO Consulting. All rights reserved.