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

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

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

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

Collaboration graph
[legend]
List of all members.

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

Detailed Description

RAIDb-2 Weighted 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 53 of file RAIDb2ec_WRR.java.


Constructor & Destructor Documentation

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

Creates a new RAIDb-2 weighted 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 79 of file RAIDb2ec_WRR.java.

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


Member Function Documentation

ControllerResultSet org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2ec_WRR.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 117 of file RAIDb2ec_WRR.java.

00119   {
00120     throw new NotImplementedException(this.getClass().getName()
00121         + ":execReadStoredProcedure");
00122   }

ControllerResultSet org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2ec_WRR.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 104 of file RAIDb2ec_WRR.java.

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

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

Gets information about the request load balancer.

Returns:
String containing information

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   }

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

See also:
RAIDb2.getRaidb2Xml()

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   }

void org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2ec_WRR.setWeight String  name,
int  w
throws SQLException
 

See also:
org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer.setWeight(String, int)

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   }


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