Class 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.
    • Constructor Detail

      • CloseEventCollector

        public CloseEventCollector()
    • 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 altered
        propertyValue - 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