|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.management.StandardMBean
org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean
org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer
org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2
org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2_RR
RAIDb-2 Round Robin load balancer.
The read requests coming from the request manager are sent in a round robin to the backend nodes. Write requests are broadcasted to all backends.
| Nested Class Summary |
| Nested classes inherited from class javax.management.StandardMBean |
|
| Field Summary | |
private int |
index
|
| Fields inherited from class org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2 |
backendBlockingThreads, backendBlockingThreadsRWLock, backendNonBlockingThreads, backendNonBlockingThreadsRWLock, createTablePolicy, logger, waitForCompletionPolicy |
| Fields inherited from class org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer |
macroHandler, parsingGranularity, raidbLevel, vdb |
| Fields inherited from class org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean |
|
| Fields inherited from class javax.management.StandardMBean |
|
| Fields inherited from interface org.objectweb.cjdbc.common.xml.XmlComponent |
DOCTYPE_DB, XML_VERSION |
| Constructor Summary | |
RAIDb2_RR(VirtualDatabase vdb,
WaitForCompletionPolicy waitForCompletionPolicy,
CreateTablePolicy createTablePolicy)
Creates a new RAIDb-2 Round Robin request load balancer. |
|
| Method Summary | |
ControllerResultSet |
execReadOnlyReadStoredProcedure(StoredProcedure proc,
MetadataCache metadataCache)
Chooses the node to execute the stored procedure using a round-robin algorithm. |
ControllerResultSet |
execReadRequest(SelectRequest request,
MetadataCache metadataCache)
Chooses the node to execute the request using a round-robin algorithm. |
java.lang.String |
getInformation()
Gets information about the request load balancer. |
java.lang.String |
getRaidb2Xml()
return xml formatted information about this raidb2 load balancer |
| Methods inherited from class org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2 |
begin, commit, disableBackend, enableBackend, execReadStoredProcedure, executeRequestOnBackend, executeStoredProcedureOnBackend, execWriteRequest, execWriteRequestWithKeys, execWriteStoredProcedure, getXmlImpl, rollback, waitForAllWritesToComplete, waitForAllWritesToComplete, waitForAllWritesToComplete |
| Methods inherited from class org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer |
executeReadStoredProcedureOnBackend, executeSelectRequestOnBackend, executeUpdateRequestOnBackend, executeUpdateRequestOnBackendWithKeys, executeWriteStoredProcedureOnBackend, getAssociatedString, getConnectionAndBeginTransaction, getParsingGranularity, getRAIDbLevel, getXml, handleMacros, setMacroHandler, setParsingGranularity, setRAIDbLevel, setWeight |
| Methods inherited from class org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean |
addNotificationListener, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getNotificationInfo, getParameterName, getParameterName, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class javax.management.StandardMBean |
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, invoke, setAttribute, setAttributes, setImplementation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int index
| Constructor Detail |
public RAIDb2_RR(VirtualDatabase vdb,
WaitForCompletionPolicy waitForCompletionPolicy,
CreateTablePolicy createTablePolicy)
throws java.lang.Exception
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
java.lang.Exception - if an error occurs| Method Detail |
public ControllerResultSet execReadRequest(SelectRequest request,
MetadataCache metadataCache)
throws java.sql.SQLException
execReadRequest in class RAIDb2request - an SelectRequestmetadataCache - cached metadata to use to construct the result set
java.sql.ResultSet
java.sql.SQLException - if an error occursRAIDb2.execReadRequest(SelectRequest,
MetadataCache)
public ControllerResultSet execReadOnlyReadStoredProcedure(StoredProcedure proc,
MetadataCache metadataCache)
throws java.sql.SQLException
execReadOnlyReadStoredProcedure in class AbstractLoadBalancerproc - the stored procedure callmetadataCache - MetadataCache (null if none)
ControllerResultSet value
java.sql.SQLException - if an error occursAbstractLoadBalancer.execReadOnlyReadStoredProcedure(StoredProcedure,
MetadataCache)public java.lang.String getInformation()
getInformation in interface AbstractLoadBalancerMBeangetInformation in class AbstractLoadBalancerString containing informationpublic java.lang.String getRaidb2Xml()
RAIDb2
getRaidb2Xml in class RAIDb2RAIDb2.getRaidb2Xml()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||