de.fzj.unicore.uas.client
Class MultiInvocationHandler<Target>

java.lang.Object
  extended by de.fzj.unicore.uas.client.MultiInvocationHandler<Target>
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class MultiInvocationHandler<Target>
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Proxy invocation handler calling underlying proxies in a multicast or round-robin fashion

Author:
schuller
See Also:
MultiWSRFClient

Constructor Summary
MultiInvocationHandler(MultiWSRFClient<?> client)
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          invokes the given method on all or a subset of the clients
 void setMode(int mode)
           
 void setTargets(java.util.List<Target> clients)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiInvocationHandler

public MultiInvocationHandler(MultiWSRFClient<?> client)
Method Detail

setMode

public void setMode(int mode)

setTargets

public void setTargets(java.util.List<Target> clients)

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
invokes the given method on all or a subset of the clients

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable


Copyright © 2006-2010 Research Center Juelich. All Rights Reserved.