public class SimpleMultiplexDistributor extends java.lang.Object implements IMultiplexDistributor
| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.Object[] | argsThe arguments. | 
| protected IParameterConverter | convThe parameter converter. | 
| protected IFilter<Tuple2<IService,java.lang.Object[]>> | filterThe service filter. | 
| protected java.lang.reflect.Method | methodThe method. | 
| protected IntermediateFuture<java.lang.Object> | resultsThe results. | 
| Constructor and Description | 
|---|
| SimpleMultiplexDistributor() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addService(IService service)Add a new service. | 
| void | checkPerformCall(IService service)Check perform call. | 
| java.lang.Object[] | getArguments()Get the arguments for a call. | 
| IIntermediateFuture<java.lang.Object> | init(java.lang.reflect.Method method,
    java.lang.Object[] args,
    IFilter<Tuple2<IService,java.lang.Object[]>> filter,
    IParameterConverter conv)Start the distributor. | 
| java.lang.Object | performCall(IService service,
           java.lang.Object[] args)Perform a call on given service with given arguments. | 
| void | serviceSearchFinished()Notify that the search has finished. | 
protected java.lang.reflect.Method method
protected java.lang.Object[] args
protected IntermediateFuture<java.lang.Object> results
protected IParameterConverter conv
public IIntermediateFuture<java.lang.Object> init(java.lang.reflect.Method method, java.lang.Object[] args, IFilter<Tuple2<IService,java.lang.Object[]>> filter, IParameterConverter conv)
init in interface IMultiplexDistributorpublic void addService(IService service)
addService in interface IMultiplexDistributorservice - The service.public void serviceSearchFinished()
serviceSearchFinished in interface IMultiplexDistributorpublic java.lang.Object[] getArguments()
public void checkPerformCall(IService service)
public java.lang.Object performCall(IService service, java.lang.Object[] args) throws java.lang.Exception
java.lang.Exception