Public Member Functions | |
RAIDb1ec_RR (VirtualDatabase vdb, WaitForCompletionPolicy waitForCompletionPolicy, ErrorCheckingPolicy errorCheckingPolicy, int nbOfConcurrentReads) throws Exception | |
ControllerResultSet | execReadRequest (SelectRequest request, MetadataCache metadataCache) throws SQLException |
ControllerResultSet | execReadOnlyReadStoredProcedure (StoredProcedure proc, MetadataCache metadataCache) throws SQLException |
String | getInformation () |
String | getRaidb1Xml () |
This load balancer tolerates byzantine failures of databases. The read requests coming from the Request Manager are sent to multiple backend nodes and the results are compared. Write requests are broadcasted to all backends.
Definition at line 50 of file RAIDb1ec_RR.java.
|
Creates a new RAIDb-1 Round Robin with error checking request load balancer.
Definition at line 73 of file RAIDb1ec_RR.java. 00077 {
00078 super(vdb, waitForCompletionPolicy, errorCheckingPolicy,
00079 nbOfConcurrentReads);
00080 // index = -1;
00081 }
|
|
Not implemented.
Implements org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer. Definition at line 104 of file RAIDb1ec_RR.java. 00106 { 00107 throw new NotImplementedException(this.getClass().getName() 00108 + ":execReadStoredProcedure"); 00109 }
|
|
Not implemented.
Implements org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1. Definition at line 92 of file RAIDb1ec_RR.java. 00094 { 00095 throw new NotImplementedException(this.getClass().getName() 00096 + ":execReadRequest"); 00097 }
|
|
Gets information about the request load balancer.
Implements org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer. Definition at line 120 of file RAIDb1ec_RR.java. References org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.getBackends(). 00121 { 00122 // We don't lock since we don't need a top accurate value 00123 int size = vdb.getBackends().size(); 00124 00125 if (size == 0) 00126 return "RAIDb-1 Error Checking with Round-Robin Request load balancer: !!!Warning!!! No backend nodes found\n"; 00127 else 00128 return "RAIDb-1 Error Checking with Round-Robin Request load balancer (" 00129 + size + " backends)\n"; 00130 }
|
|
Implements org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1. Definition at line 135 of file RAIDb1ec_RR.java. 00136 { 00137 return "<" + DatabasesXmlTags.ELT_RAIDb_1ec_RoundRobin + "/>"; 00138 }
|