Public Member Functions | |
RAIDb2ec_WRR (VirtualDatabase vdb, WaitForCompletionPolicy waitForCompletionPolicy, CreateTablePolicy createTablePolicy, ErrorCheckingPolicy errorCheckingPolicy, int nbOfConcurrentReads) throws Exception | |
ControllerResultSet | execReadRequest (SelectRequest request, MetadataCache metadataCache) throws SQLException |
ControllerResultSet | execReadOnlyReadStoredProcedure (StoredProcedure proc, MetadataCache metadataCache) throws SQLException |
void | setWeight (String name, int w) throws SQLException |
String | getInformation () |
String | getRaidb2Xml () |
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 53 of file RAIDb2ec_WRR.java.
|
Creates a new RAIDb-2 weighted round robin with error checking request load balancer.
Definition at line 79 of file RAIDb2ec_WRR.java. 00084 { 00085 super(vdb, waitForCompletionPolicy, createTablePolicy, errorCheckingPolicy, 00086 nbOfConcurrentReads); 00087 }
|
|
Not implemented.
Implements org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer. Definition at line 117 of file RAIDb2ec_WRR.java. 00119 { 00120 throw new NotImplementedException(this.getClass().getName() 00121 + ":execReadStoredProcedure"); 00122 }
|
|
Performs a read request. It is up to the implementation to choose to which backend node(s) this request should be sent.
Implements org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2. Definition at line 104 of file RAIDb2ec_WRR.java. 00106 { 00107 throw new NotImplementedException(this.getClass().getName() 00108 + ":execReadRequest"); 00109 }
|
|
Gets information about the request load balancer.
Implements org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer. Definition at line 146 of file RAIDb2ec_WRR.java. 00147 { 00148 if (backends == null) 00149 return "RAIDb-2 Error Checking with Weighted Round Robin Request load balancer: " 00150 + "!!!Warning!!! No backend nodes found\n"; 00151 else 00152 return "RAIDb-2 Error Checking with Weighted Round Robin Request load balancer balancing over " 00153 + backends.size() + " nodes\n"; 00154 }
|
|
Implements org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2. Definition at line 159 of file RAIDb2ec_WRR.java. 00160 {
00161 return WeightedBalancer.getRaidbXml(backends,
00162 DatabasesXmlTags.ELT_RAIDb_2ec_WeightedRoundRobin);
00163 }
|
|
Reimplemented from org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer. Definition at line 132 of file RAIDb2ec_WRR.java. 00133 { 00134 throw new SQLException("Weight is not supported with this load balancer"); 00135 }
|