Class MediatorTreeTraverseUtil


  • public class MediatorTreeTraverseUtil
    extends Object
    Helper class to locate a mediator while traversing the mediator tree given relative child position array starting from parent root of tree to the particular mediator.
    • Constructor Detail

      • MediatorTreeTraverseUtil

        public MediatorTreeTraverseUtil()
    • Method Detail

      • getMediatorReference

        public static Mediator getMediatorReference​(SynapseConfiguration synCfg,
                                                    Mediator seqMediator,
                                                    int[] position)
        Returns mediator referece associated with position while traversing the mediator tree.
        Parameters:
        synCfg - synapse configuration reference
        seqMediator - sequence mediator which traverse happens
        position - array of tree nodes specifying position integer with respect to it's parent node starting from the root parent.
        Returns:
        Mediator reference