public class MessageProcessingFlowTraceManager extends LocationExecutionContextProvider implements FlowTraceManager, MuleContextAware, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Disposable
| Modifier and Type | Field and Description |
|---|---|
static String |
FLOW_STACK_INFO_KEY |
PASSWORD_ATTRIBUTE_MASK, SOURCE_ELEMENT_ANNOTATION_KEY| Constructor and Description |
|---|
MessageProcessingFlowTraceManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
Map<String,Object> |
getContextInfo(EnrichedNotificationInfo notificationInfo,
Processor lastProcessed,
FlowConstruct flowConstruct) |
protected void |
handleNotificationListeners() |
void |
initialise() |
void |
onFlowComplete(EnrichedNotificationInfo notificationInfo)
Handles the completion of the current flow for the given event.
|
void |
onFlowStart(EnrichedNotificationInfo notificationInfo,
String flowName)
Handles the start of the passed flowName for the given event.
|
void |
onMessageProcessorNotificationPreInvoke(MessageProcessorNotification notification)
Callback method for when a message processor is about to be invoked.
|
void |
onPipelineNotificationComplete(PipelineMessageNotification notification)
Callback method for when a flow or sub-flow called from a
flow-ref component has been completed. |
void |
onPipelineNotificationStart(PipelineMessageNotification notification)
Callback method for when a flow or sub-flow is about to be called from a
flow-ref. |
protected void |
removeNotificationListeners() |
void |
setMuleContext(MuleContext context) |
addMetadataAnnotationsFromXml, getSourceXML, maskPasswordspublic static final String FLOW_STACK_INFO_KEY
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarecontext - the Mule node.public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposableprotected void handleNotificationListeners()
protected void removeNotificationListeners()
public void onMessageProcessorNotificationPreInvoke(MessageProcessorNotification notification)
ProcessorsTrace and FlowCallStack accordingly.notification - the notification that contains the event and the processor that is about to be invoked.DefaultProcessorsTrace.addExecutedProcessors(String),
DefaultFlowCallStack.setCurrentProcessorPath(String)public void onPipelineNotificationComplete(PipelineMessageNotification notification)
flow-ref component has been completed.notification - the notification that contains the event and the processor that is about to be invoked.public void onPipelineNotificationStart(PipelineMessageNotification notification)
flow-ref.notification - the notification that contains the event and the processor that is about to be invoked.public void onFlowStart(EnrichedNotificationInfo notificationInfo, String flowName)
FlowTraceManageronFlowStart in interface FlowTraceManagernotificationInfo - the notification information about the event for which the flow is being startedflowName - the name of the flow that is about to startpublic void onFlowComplete(EnrichedNotificationInfo notificationInfo)
FlowTraceManageronFlowComplete in interface FlowTraceManagernotificationInfo - the notification information about the event for which the flow is being completedpublic Map<String,Object> getContextInfo(EnrichedNotificationInfo notificationInfo, Processor lastProcessed, FlowConstruct flowConstruct)
getContextInfo in interface ExceptionContextProviderCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.