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()
XIntegrationFlowTracer
XIntegrationFlow
instancesclearAllMessageTraces
in interface XIntegrationFlowTracer
public void clearMessageTrace(String projectId, String projectVersion, String flowId)
XIntegrationFlowTracer
XIntegrationFlow
instance with the given idclearMessageTrace
in interface XIntegrationFlowTracer
projectId
- 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)
XIntegrationFlowTracer
traceReceivedMessage
in interface XIntegrationFlowTracer
projectId
- 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
elementId
- 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)
XIntegrationFlowTracer
traceMessage
in interface XIntegrationFlowTracer
projectId
- 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
sourceId
- 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()
XIntegrationFlowTracer
enableMessageTracing
in interface XIntegrationFlowTracer
public void disableMessageTracing()
XIntegrationFlowTracer
disableMessageTracing
in interface XIntegrationFlowTracer
public boolean isTracingEnabled()
XIntegrationFlowTracer
isTracingEnabled
in interface XIntegrationFlowTracer
public void setTracingEnabled(boolean tracingEnabled)
XIntegrationFlowTracer
setTracingEnabled
in interface XIntegrationFlowTracer
tracingEnabled
- if true, tracing will be enabledpublic List<IntegrationFlowTraceNode> getTracedFlow(String projectId, String projectVersion, String flowId)
XIntegrationFlowTracer
getTracedFlow
in interface XIntegrationFlowTracer
projectId
- 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
IntegrationFlowTraceNode
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)
XIntegrationFlowTracer
getMessageView
in interface XIntegrationFlowTracer
projectId
- 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
sourceId
- 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)
XIntegrationFlowTracer
getReceivedMessage
in interface XIntegrationFlowTracer
projectId
- 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
elementID
- ID of the elementOptional
of type XMessageView
containing the traced message view if exists, else Optional.empty()
public int getMaxPayloadSizeKbs()
XIntegrationFlowTracer
getMaxPayloadSizeKbs
in interface XIntegrationFlowTracer
public void setMaxPayloadSizeKbs(int maxPayloadSizeKbs)
XIntegrationFlowTracer
setMaxPayloadSizeKbs
in interface XIntegrationFlowTracer
maxPayloadSizeKbs
- the maximum size of the payload to be traced in kilo bytesCopyright © 2016–2019 AdroitLogic. All rights reserved.