Public Member Functions | |
RAIDb2ec_RR (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 |
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 52 of file RAIDb2ec_RR.java.
|
Creates a new RAIDb-2 Round Robin with error checking request load balancer.
Definition at line 78 of file RAIDb2ec_RR.java. 00083 { 00084 super(vdb, waitForCompletionPolicy, createTablePolicy, errorCheckingPolicy, 00085 nbOfConcurrentReads); 00086 }
|
|
Not implemented.
Implements org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer. Definition at line 116 of file RAIDb2ec_RR.java. 00118 { 00119 throw new NotImplementedException(this.getClass().getName() 00120 + ":execReadStoredProcedure"); 00121 }
|
|
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 103 of file RAIDb2ec_RR.java. 00105 { 00106 throw new NotImplementedException(this.getClass().getName() 00107 + ":execReadRequest"); 00108 }
|
|
Gets information about the request load balancer.
Implements org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer. Definition at line 132 of file RAIDb2ec_RR.java. 00133 { 00134 if (backends == null) 00135 return "RAIDb-2 Error Checking with Round Robin Request load balancer: !!!Warning!!! No backend nodes found\n"; 00136 else 00137 return "RAIDb-2 Error Checking with Round Robin Request load balancer balancing over " 00138 + backends.size() + " nodes\n"; 00139 }
|
|
Implements org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2. Definition at line 144 of file RAIDb2ec_RR.java. 00145 { 00146 return "<" + DatabasesXmlTags.ELT_RAIDb_2ec_RoundRobin + "/>"; 00147 }
|