Public Member Functions | |
RAIDb1ec_WRR (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 |
void | setWeight (String name, int w) 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 53 of file RAIDb1ec_WRR.java.
|
Creates a new RAIDb-1 Weighted Round Robin with error checking request load balancer.
Definition at line 78 of file RAIDb1ec_WRR.java. 00082 {
00083 super(vdb, waitForCompletionPolicy, errorCheckingPolicy,
00084 nbOfConcurrentReads);
00085 // index = -1;
00086 }
|
|
Not implemented.
Implements org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer. Definition at line 109 of file RAIDb1ec_WRR.java. 00111 { 00112 throw new NotImplementedException(this.getClass().getName() 00113 + ":execReadStoredProcedure"); 00114 }
|
|
Not implemented.
Implements org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1. Definition at line 97 of file RAIDb1ec_WRR.java. 00099 { 00100 throw new NotImplementedException(this.getClass().getName() 00101 + ":execReadRequest"); 00102 }
|
|
Gets information about the request load balancer.
Implements org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer. Definition at line 142 of file RAIDb1ec_WRR.java. 00143 { 00144 // We don't lock since we don't need a top accurate value 00145 int size = vdb.getBackends().size(); 00146 00147 if (size == 0) 00148 return "RAIDb-1 Error Checking with Weighted Round-Robin Request load balancer: " 00149 + "!!!Warning!!! No backend nodes found\n"; 00150 else 00151 return "RAIDb-1 Error Checking with Weighted Round-Robin Request load balancer (" 00152 + size + " backends)\n"; 00153 }
|
|
Implements org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1. Definition at line 158 of file RAIDb1ec_WRR.java. 00159 {
00160 return WeightedBalancer.getRaidbXml(weights,
00161 DatabasesXmlTags.ELT_RAIDb_1ec_WeightedRoundRobin);
00162 }
|
|
Reimplemented from org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer. Definition at line 124 of file RAIDb1ec_WRR.java. References org.objectweb.cjdbc.common.log.Trace.debug(), and org.objectweb.cjdbc.common.log.Trace.isDebugEnabled(). 00125 { 00126 if (logger.isDebugEnabled()) 00127 logger.debug(Translate.get("loadbalancer.weight.set", new String[]{ 00128 String.valueOf(w), name})); 00129 00130 weights.put(name, new Integer(w)); 00131 }
|