public class InMemoryIntegrationFlowTracer extends Object implements XIntegrationFlowTracer
| Constructor and Description |
|---|
InMemoryIntegrationFlowTracer() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllMessageTraces()
Clears the existing traces of all the
XIntegrationFlow instances |
void |
clearMessageTrace(String projectId,
String projectVersion,
String flowId)
Clears the existing trace of the
XIntegrationFlow instance with the given id |
void |
disableMessageTracing()
Disables tracing of messages
|
void |
enableMessageTracing()
Enables tracing of messages
|
int |
getMaxPayloadSizeKbs()
Retrieves the current set value for the maximum size of the payload to be traced.
|
Optional<XMessageView> |
getMessageView(String projectId,
String projectVersion,
String flowId,
String sourceId,
String outPortName,
String targetId)
Retrieves the traced view of the message context that was transferred from the given outport (of given source
element) to the given target element
|
Optional<XMessageView> |
getReceivedMessage(String projectId,
String projectVersion,
String flowId,
String elementID)
Retrieves the traced view of the received message context of the given element
|
List<IntegrationFlowTraceNode> |
getTracedFlow(String projectId,
String projectVersion,
String flowId)
Retrieves the last trace of the Integration Flow with the given Id
|
boolean |
isTracingEnabled()
Checks whether the message tracing is enabled
|
void |
setMaxPayloadSizeKbs(int maxPayloadSizeKbs)
Sets the the maximum size of the payload to be traced.
|
void |
setTracingEnabled(boolean tracingEnabled)
Sets whether to enable tracing or not
|
void |
traceMessage(String projectId,
String projectVersion,
String flowId,
String sourceId,
String outPortDisplayName,
String targetId,
XMessageContext messageContext)
Traces a message context that was transferred from the given outport (of given source element) to the given
target element
|
void |
traceReceivedMessage(String projectId,
String projectVersion,
String flowId,
String elementId,
XMessageContext messageContext)
Traces a received message context for the given element that belongs to the Integration Flow with the given ID
|
public void clearAllMessageTraces()
XIntegrationFlowTracerXIntegrationFlow instancesclearAllMessageTraces in interface XIntegrationFlowTracerpublic void clearMessageTrace(String projectId, String projectVersion, String flowId)
XIntegrationFlowTracerXIntegrationFlow instance with the given idclearMessageTrace in interface XIntegrationFlowTracerprojectId - ID of the project to which the integration flow belongs toprojectVersion - version of the project to which the integration flow belongs toflowId - ID of the XIntegrationFlow to be clearedpublic void traceReceivedMessage(String projectId, String projectVersion, String flowId, String elementId, XMessageContext messageContext)
XIntegrationFlowTracertraceReceivedMessage in interface XIntegrationFlowTracerprojectId - ID of the project to which the integration flow belongs toprojectVersion - version of the project to which the integration flow belongs toflowId - ID of the XIntegrationFlowelementId - ID of the element (this will be the Spring bean name of the element)messageContext - XMessageContext instance to be tracedpublic void traceMessage(String projectId, String projectVersion, String flowId, String sourceId, String outPortDisplayName, String targetId, XMessageContext messageContext)
XIntegrationFlowTracertraceMessage in interface XIntegrationFlowTracerprojectId - ID of the project to which the integration flow belongs toprojectVersion - version of the project to which the integration flow belongs toflowId - ID of the XIntegrationFlowsourceId - ID of the source elementoutPortDisplayName - display name of the outport from which the message is emittedtargetId - ID of the target elementmessageContext - XMessageContext instance to be tracedpublic void enableMessageTracing()
XIntegrationFlowTracerenableMessageTracing in interface XIntegrationFlowTracerpublic void disableMessageTracing()
XIntegrationFlowTracerdisableMessageTracing in interface XIntegrationFlowTracerpublic boolean isTracingEnabled()
XIntegrationFlowTracerisTracingEnabled in interface XIntegrationFlowTracerpublic void setTracingEnabled(boolean tracingEnabled)
XIntegrationFlowTracersetTracingEnabled in interface XIntegrationFlowTracertracingEnabled - if true, tracing will be enabledpublic List<IntegrationFlowTraceNode> getTracedFlow(String projectId, String projectVersion, String flowId)
XIntegrationFlowTracergetTracedFlow in interface XIntegrationFlowTracerprojectId - ID of the project to which the integration flow belongs toprojectVersion - version of the project to which the integration flow belongs toflowId - ID of the XIntegrationFlowIntegrationFlowTraceNode with each entry representing a trace between two elements,
will return an empty list if there is no trace exists for this flowpublic Optional<XMessageView> getMessageView(String projectId, String projectVersion, String flowId, String sourceId, String outPortName, String targetId)
XIntegrationFlowTracergetMessageView in interface XIntegrationFlowTracerprojectId - ID of the project to which the integration flow belongs toprojectVersion - version of the project to which the integration flow belongs toflowId - ID of the XIntegrationFlowsourceId - ID of the source elementoutPortName - display name of the outport from which the message is emittedtargetId - ID of the target elementOptional of type XMessageView containing the traced message view if exists, else Optional.empty()public Optional<XMessageView> getReceivedMessage(String projectId, String projectVersion, String flowId, String elementID)
XIntegrationFlowTracergetReceivedMessage in interface XIntegrationFlowTracerprojectId - ID of the project to which the integration flow belongs toprojectVersion - version of the project to which the integration flow belongs toflowId - ID of the XIntegrationFlowelementID - ID of the elementOptional of type XMessageView containing the traced message view if exists, else Optional.empty()public int getMaxPayloadSizeKbs()
XIntegrationFlowTracergetMaxPayloadSizeKbs in interface XIntegrationFlowTracerpublic void setMaxPayloadSizeKbs(int maxPayloadSizeKbs)
XIntegrationFlowTracersetMaxPayloadSizeKbs in interface XIntegrationFlowTracermaxPayloadSizeKbs - the maximum size of the payload to be traced in kilo bytesCopyright © 2016–2019 AdroitLogic. All rights reserved.