src/org/objectweb/cjdbc/controller/loadbalancer/raidb2/RAIDb2ec_RR.java

説明を見る。
00001 00025 package org.objectweb.cjdbc.controller.loadbalancer.raidb2; 00026 00027 import java.sql.SQLException; 00028 import java.util.Vector; 00029 00030 import org.objectweb.cjdbc.common.sql.NotImplementedException; 00031 import org.objectweb.cjdbc.common.sql.SelectRequest; 00032 import org.objectweb.cjdbc.common.sql.StoredProcedure; 00033 import org.objectweb.cjdbc.common.xml.DatabasesXmlTags; 00034 import org.objectweb.cjdbc.controller.cache.metadata.MetadataCache; 00035 import org.objectweb.cjdbc.controller.loadbalancer.policies.WaitForCompletionPolicy; 00036 import org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTablePolicy; 00037 import org.objectweb.cjdbc.controller.loadbalancer.policies.errorchecking.ErrorCheckingPolicy; 00038 import org.objectweb.cjdbc.controller.virtualdatabase.ControllerResultSet; 00039 import org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase; 00040 00052 public class RAIDb2ec_RR extends RAIDb2ec 00053 { 00054 /* 00055 * How the code is organized ? 1. Member variables 2. Constructor(s) 3. 00056 * Request handling 4. Debug/Monitoring 00057 */ 00058 00059 private Vector backends; 00060 00061 /* 00062 * Constructors 00063 */ 00064 00078 public RAIDb2ec_RR(VirtualDatabase vdb, 00079 WaitForCompletionPolicy waitForCompletionPolicy, 00080 CreateTablePolicy createTablePolicy, 00081 ErrorCheckingPolicy errorCheckingPolicy, int nbOfConcurrentReads) 00082 throws SQLException 00083 { 00084 super(vdb, waitForCompletionPolicy, createTablePolicy, errorCheckingPolicy, 00085 nbOfConcurrentReads); 00086 } 00087 00088 /* 00089 * Request Handling 00090 */ 00091 00103 public ControllerResultSet execReadRequest(SelectRequest request, 00104 MetadataCache metadataCache) throws SQLException 00105 { 00106 throw new NotImplementedException(this.getClass().getName() 00107 + ":execReadRequest"); 00108 } 00109 00116 public ControllerResultSet execReadOnlyReadStoredProcedure( 00117 StoredProcedure proc, MetadataCache metadataCache) throws SQLException 00118 { 00119 throw new NotImplementedException(this.getClass().getName() 00120 + ":execReadStoredProcedure"); 00121 } 00122 00123 /* 00124 * Debug/Monitoring 00125 */ 00126 00132 public String getInformation() 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 } 00140 00144 public String getRaidb2Xml() 00145 { 00146 return "<" + DatabasesXmlTags.ELT_RAIDb_2ec_RoundRobin + "/>"; 00147 } 00148 }

CJDBCversion1.0.4に対してTue Oct 12 15:16:02 2004に生成されました。 doxygen 1.3.8