|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzj.unicore.uas.client.MultiWSRFClient<T>
public class MultiWSRFClient<T extends BaseUASClient>
Talks to multiple WSRF services in a round-robin or multicast fashion.
TODO support for plain ws
| Field Summary | |
|---|---|
protected java.util.List<T> |
clients
|
protected static org.apache.log4j.Logger |
logger
|
static int |
MULTICAST
Multicast mode: all services will receive messages |
static int |
PRIMARY_WITH_BACKUP
The first service is the primary one, the others act as backup |
static int |
ROUNDROBIN
Roundrobin mode |
static int |
ROUNDROBIN_RETRY_ON_FAILURE
Roundrobin mode, and calls will be retried if they fail |
| Constructor Summary | |
|---|---|
MultiWSRFClient()
|
|
| Method Summary | ||
|---|---|---|
void |
addClient(T client)
|
|
boolean |
getErrorsOccurred()
|
|
protected
|
getInvocationHandler(java.util.List<Target> targets)
|
|
protected int |
getMaxRetries()
|
|
|
makeProxy(java.lang.Class<Target> target)
create a proxy for the given interface |
|
boolean |
removeClient(T client)
|
|
void |
setGlobalRetryPolicy(de.fzj.unicore.wsrflite.xfire.ReliableProxy.RetryDecider policy)
sets the ReliableProxy.RetryDecider retry policy on
all the clients |
|
void |
setMaxRetries(int maxRetries)
|
|
void |
setMode(int mode)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
public static final int MULTICAST
public static final int ROUNDROBIN
public static final int ROUNDROBIN_RETRY_ON_FAILURE
public static final int PRIMARY_WITH_BACKUP
protected java.util.List<T extends BaseUASClient> clients
| Constructor Detail |
|---|
public MultiWSRFClient()
| Method Detail |
|---|
public void addClient(T client)
public boolean removeClient(T client)
public void setGlobalRetryPolicy(de.fzj.unicore.wsrflite.xfire.ReliableProxy.RetryDecider policy)
ReliableProxy.RetryDecider retry policy on
all the clients
policy - - the retry policypublic void setMode(int mode)
public <Target> Target makeProxy(java.lang.Class<Target> target)
throws java.lang.Exception
Target - target -
java.lang.Exceptionprotected <Target> java.lang.reflect.InvocationHandler getInvocationHandler(java.util.List<Target> targets)
protected int getMaxRetries()
public void setMaxRetries(int maxRetries)
public boolean getErrorsOccurred()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||