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

org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1ec_RR Class Reference

Inheritance diagram for org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1ec_RR:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1ec_RR:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

RAIDb-1 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 50 of file RAIDb1ec_RR.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1ec_RR.RAIDb1ec_RR VirtualDatabase  vdb,
WaitForCompletionPolicy  waitForCompletionPolicy,
ErrorCheckingPolicy  errorCheckingPolicy,
int  nbOfConcurrentReads
throws Exception
 

Creates a new RAIDb-1 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?
errorCheckingPolicy policy to apply for error checking.
nbOfConcurrentReads Number of concurrent reads allowed
Exceptions:
Exception if an error occurs

Definition at line 73 of file RAIDb1ec_RR.java.

00077   {
00078     super(vdb, waitForCompletionPolicy, errorCheckingPolicy,
00079         nbOfConcurrentReads);
00080     // index = -1;
00081   }


Member Function Documentation

ControllerResultSet org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1ec_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 104 of file RAIDb1ec_RR.java.

00106   {
00107     throw new NotImplementedException(this.getClass().getName()
00108         + ":execReadStoredProcedure");
00109   }

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

Not implemented.

See also:
org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1.execReadRequest(SelectRequest, MetadataCache)

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   }

String org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1ec_RR.getInformation  )  [virtual]
 

Gets information about the request load balancer.

Returns:
String containing information

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   }

String org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1ec_RR.getRaidb1Xml  )  [virtual]
 

See also:
org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1.getRaidb1Xml

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   }


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