|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.controller.loadbalancer.policies.WaitForCompletionPolicy
Defines the policy to adopt before returning a result to the client.
Field Summary | |
static int |
ALL
Wait for all nodes to complete the request before returning the result. |
static int |
FIRST
Return as soon as one node has completed the request. |
static int |
MAJORITY
Return as soon as a majority (n/2+1) of nodes has completed the request. |
private int |
policy
Policy (default is FIRST ). |
Constructor Summary | |
WaitForCompletionPolicy()
|
Method Summary | |
java.lang.String |
getInformation()
Gives information about the current policy. |
int |
getPolicy()
Returns the policy. |
java.lang.String |
getXml()
Returns this wait policy in xml format. |
void |
setPolicy(int policy)
Sets the policy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FIRST
public static final int MAJORITY
public static final int ALL
private int policy
FIRST
).
Constructor Detail |
public WaitForCompletionPolicy()
Method Detail |
public int getPolicy()
int
valuepublic void setPolicy(int policy)
policy
- the policy to setpublic java.lang.String getInformation()
String
valuepublic java.lang.String getXml()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |