Class SimpleMultiplexDistributor

  • All Implemented Interfaces:
    IMultiplexDistributor
    Direct Known Subclasses:
    SequentialMultiplexDistributor

    public class SimpleMultiplexDistributor
    extends java.lang.Object
    implements IMultiplexDistributor
    Simple multiplex call distributor. It determines: - which services are called: all services found one time - with which arguments: all with the same single argument set - when finished: after each service has been called once
    • Field Detail

      • method

        protected java.lang.reflect.Method method
        The method.
      • args

        protected java.lang.Object[] args
        The arguments.
    • Constructor Detail

      • SimpleMultiplexDistributor

        public SimpleMultiplexDistributor()
    • Method Detail

      • getArguments

        public java.lang.Object[] getArguments()
        Get the arguments for a call.
        Returns:
        The arguments.
      • checkPerformCall

        public void checkPerformCall​(IService service)
        Check perform call.
      • performCall

        public java.lang.Object performCall​(IService service,
                                            java.lang.Object[] args)
                                     throws java.lang.Exception
        Perform a call on given service with given arguments.
        Throws:
        java.lang.Exception