Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2ec_RR Class Reference

Inheritance diagram for org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2ec_RR:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2ec_RR:

Collaboration graph
[legend]
List of all members.

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 ()

Detailed Description

RAIDb-2 Round Robin load balancer with error checking

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.

Author:
Emmanuel Cecchet

Julie Marguerite

Version:
1.0

Definition at line 52 of file RAIDb2ec_RR.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2ec_RR.RAIDb2ec_RR VirtualDatabase  vdb,
WaitForCompletionPolicy  waitForCompletionPolicy,
CreateTablePolicy  createTablePolicy,
ErrorCheckingPolicy  errorCheckingPolicy,
int  nbOfConcurrentReads
throws Exception
 

Creates a new RAIDb-2 Round Robin with error checking request load balancer.

Parameters:
vdb The virtual database this load balancer belongs to.
waitForCompletionPolicy How many backends must complete before returning the result?
createTablePolicy The policy defining how 'create table' statements should be handled
errorCheckingPolicy Policy to apply for error checking.
nbOfConcurrentReads Number of concurrent reads allowed
Exceptions:
Exception if an error occurs

Definition at line 78 of file RAIDb2ec_RR.java.

00083   {
00084     super(vdb, waitForCompletionPolicy, createTablePolicy, errorCheckingPolicy,
00085         nbOfConcurrentReads);
00086   }


Member Function Documentation

ControllerResultSet org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2ec_RR.execReadOnlyReadStoredProcedure StoredProcedure  proc,
MetadataCache  metadataCache
throws SQLException [virtual]
 

Not implemented.

See also:
org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer.execReadOnlyReadStoredProcedure(StoredProcedure, MetadataCache)

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   }

ControllerResultSet org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2ec_RR.execReadRequest SelectRequest  request,
MetadataCache  metadataCache
throws SQLException [virtual]
 

Performs a read request. It is up to the implementation to choose to which backend node(s) this request should be sent.

Parameters:
request an SelectRequest
metadataCache cached metadata to use to construct the result set
Returns:
the corresponding java.sql.ResultSet
Exceptions:
SQLException if an error occurs
See also:
org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2.execReadRequest(SelectRequest, MetadataCache)

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   }

String org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2ec_RR.getInformation  )  [virtual]
 

Gets information about the request load balancer.

Returns:
String containing information

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   }

String org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2ec_RR.getRaidb2Xml  )  [virtual]
 

See also:
org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2.getRaidb2Xml

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   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:04:13 2005 for C-JDBC by  doxygen 1.3.9.1