Class ArtifactHolderBasedParentResolver


  • public class ArtifactHolderBasedParentResolver
    extends AbstractParentResolver
    Resolves parents based on the artifact holder, which is related to aspect configuration of elements. Elements are uniquely named at the time of loading synapse configurations, and such names are referred in the structuring element stack of an artifact holder - which states the path from a child to its holder. Statistic data unit component unique id will give the same name, at the time of events collection. This is used to correlate the aspect configuration with the statistic data unit.
    • Constructor Detail

      • ArtifactHolderBasedParentResolver

        public ArtifactHolderBasedParentResolver()
    • Method Detail

      • resolveParent

        public static SpanWrapper resolveParent​(StatisticDataUnit child,
                                                SpanStore spanStore,
                                                MessageContext synCtx)
        Resolves parent span, based on the artifact holder. The structuring element stack denoted by the child element's component unique id will be acquired, and the parent span wrapper is found with respect to the component unique id that has been mentioned in the stack. When not found, null is returned.
        Parameters:
        child - Child statistic data unit.
        spanStore - Span store object.
        synCtx - Message context of the child statistic data unit.
        Returns:
        Resolved parent span wrapper. Null when not available.