Class CloseEventCollector
- java.lang.Object
-
- org.apache.synapse.aspects.flow.statistics.collectors.RuntimeStatisticCollector
-
- org.apache.synapse.aspects.flow.statistics.collectors.CloseEventCollector
-
public class CloseEventCollector extends RuntimeStatisticCollector
CloseEventCollector receives close statistic events from synapse mediation engine. It Receives Statistics for Proxy Services, Inbound Endpoint, APIs, Sequences, Endpoints, Mediators and Resources.
-
-
Field Summary
-
Fields inherited from class org.apache.synapse.aspects.flow.statistics.collectors.RuntimeStatisticCollector
eventExpireTime
-
-
Constructor Summary
Constructors Constructor Description CloseEventCollector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
closeEntryEvent(MessageContext messageContext, String componentName, ComponentType componentType, Integer currentIndex, boolean isContentAltering)
Enqueue statistics event to the event queue.static void
closeEntryEvent(MessageContext messageContext, String componentName, ComponentType componentType, Integer currentIndex, boolean isContentAltering, String propertyValue)
Enqueue statistics event to the event queue.static void
closeFlowForcefully(MessageContext messageContext, boolean error)
Enqueue statistics event to the event queue.static void
tryEndFlow(MessageContext messageContext, String componentName, ComponentType componentType, Integer currentIndex, boolean isContentAltering)
Enqueue statistics events to the event queue to close and try to finish the flow.-
Methods inherited from class org.apache.synapse.aspects.flow.statistics.collectors.RuntimeStatisticCollector
addEvent, addEventAndCloseFlow, addEventAndDecrementCallbackCount, addEventAndDecrementCount, addEventAndIncrementCallbackCount, addEventAndIncrementCount, init, isCollectingAllStatistics, isCollectingPayloads, isCollectingProperties, isMediationFlowStatisticsEnabled, isOpenTelemetryEnabled, isStatisticsEnabled, setCollectingAllStatistics, setStatisticsTraceId, shouldReportStatistic
-
-
-
-
Method Detail
-
closeEntryEvent
public static void closeEntryEvent(MessageContext messageContext, String componentName, ComponentType componentType, Integer currentIndex, boolean isContentAltering)
Enqueue statistics event to the event queue. This method receives statistics events from synapse mediation engine for all the component types.- Parameters:
messageContext
- synapse message context.componentName
- name of the component reporting statistics.componentType
- component type of the reporting component.currentIndex
- component's level in this message flow.isContentAltering
- true if content is altered
-
closeEntryEvent
public static void closeEntryEvent(MessageContext messageContext, String componentName, ComponentType componentType, Integer currentIndex, boolean isContentAltering, String propertyValue)
Enqueue statistics event to the event queue. This method receives statistics events from synapse mediation engine for all the component types.- Parameters:
messageContext
- synapse message context.componentName
- name of the component reporting statistics.componentType
- component type of the reporting component.currentIndex
- component's level in this message flow.isContentAltering
- true if content is alteredpropertyValue
- value of the property
-
closeFlowForcefully
public static void closeFlowForcefully(MessageContext messageContext, boolean error)
Enqueue statistics event to the event queue. This method invokes when fault sequence finished handling the fault occurred in the message flow.- Parameters:
messageContext
- synapse message context.
-
tryEndFlow
public static void tryEndFlow(MessageContext messageContext, String componentName, ComponentType componentType, Integer currentIndex, boolean isContentAltering)
Enqueue statistics events to the event queue to close and try to finish the flow.- Parameters:
messageContext
- synapse message context.componentName
- name of the component reporting statistics.componentType
- component type of the reporting component.currentIndex
- component's level in this message flow.isContentAltering
- true if content is altered
-
-