Public Member Functions | |
RAIDb1_RR (VirtualDatabase vdb, WaitForCompletionPolicy waitForCompletionPolicy) throws Exception | |
ControllerResultSet | execReadRequest (SelectRequest request, MetadataCache metadataCache) throws SQLException |
ControllerResultSet | execReadOnlyReadStoredProcedure (StoredProcedure proc, MetadataCache metadataCache) throws SQLException |
String | getInformation () |
String | getRaidb1Xml () |
The read requests coming from the Request Manager are sent in a round robin to the backend nodes. Write requests are broadcasted to all backends.
Definition at line 53 of file RAIDb1_RR.java.
|
Creates a new RAIDb-1 Round Robin request load balancer.
Definition at line 74 of file RAIDb1_RR.java. 00076 { 00077 super(vdb, waitForCompletionPolicy); 00078 index = -1; 00079 }
|
|
Selects the backend using a simple round-robin algorithm and executes the read request.
Implements org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer. Definition at line 105 of file RAIDb1_RR.java. 00107 { 00108 return executeRoundRobinRequest(proc, false, "Stored procedure ", 00109 metadataCache); 00110 }
|
|
Selects the backend using a simple round-robin algorithm and executes the read request.
Implements org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1. Definition at line 92 of file RAIDb1_RR.java. 00094 { 00095 return executeRoundRobinRequest(request, true, "Request ", metadataCache); 00096 }
|
|
Gets information about the request load balancer.
Implements org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer. Definition at line 239 of file RAIDb1_RR.java. 00240 { 00241 // We don't lock since we don't need a top accurate value 00242 int size = vdb.getBackends().size(); 00243 00244 if (size == 0) 00245 return "RAIDb-1 Round-Robin Request load balancer: !!!Warning!!! No backend nodes found\n"; 00246 else 00247 return "RAIDb-1 Round-Robin Request load balancer (" + size 00248 + " backends)\n"; 00249 }
|
|
Implements org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1. Definition at line 254 of file RAIDb1_RR.java. 00255 { 00256 return "<" + DatabasesXmlTags.ELT_RAIDb_1_RoundRobin + "/>"; 00257 }
|