|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.StandardMBean org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer org.objectweb.cjdbc.controller.loadbalancer.paralleldb.ParallelDB org.objectweb.cjdbc.controller.loadbalancer.paralleldb.ParallelDB_RR
This class defines a ParallelDB_RR load balancer. This load balancer performs simple round-robin for read and write queries execution.
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.paralleldb.ParallelDB |
|
Fields inherited from class org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer |
logger, macroHandler, parsingGranularity, raidbLevel, totalOrderQueue, 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_CONTROLLER, DOCTYPE_DB, XML_VERSION |
Constructor Summary | |
ParallelDB_RR(VirtualDatabase vdb)
Creates a new ParallelDB_RR object |
Method Summary | |
DatabaseBackend |
chooseBackendForReadRequest(AbstractRequest request)
Choose a backend using a round-robin algorithm for read request execution. |
DatabaseBackend |
chooseBackendForWriteRequest(AbstractWriteRequest request)
Choose a backend using a round-robin algorithm for write request execution. |
java.lang.String |
getInformation()
Get information about the Request Load Balancer |
java.lang.String |
getParallelDBXml()
Return the XML tags of the ParallelDB load balancer implementation. |
Methods inherited from class org.objectweb.cjdbc.controller.loadbalancer.paralleldb.ParallelDB |
begin, commit, disableBackend, enableBackend, execReadOnlyReadStoredProcedure, execReadRequest, execReadStoredProcedure, execWriteRequest, execWriteRequestWithKeys, execWriteStoredProcedure, getNumberOfEnabledBackends, getXmlImpl, releaseSavepoint, rollback, rollback, setSavepoint |
Methods inherited from class org.objectweb.cjdbc.controller.loadbalancer.AbstractLoadBalancer |
executeReadStoredProcedureOnBackend, executeSelectRequestOnBackend, executeUpdateRequestOnBackend, executeUpdateRequestOnBackendWithKeys, executeWriteStoredProcedureOnBackend, getAssociatedString, getConnectionAndBeginTransaction, getParsingGranularity, getRAIDbLevel, getXml, handleMacros, removeHeadFromAndNotifyTotalOrderQueue, setMacroHandler, setParsingGranularity, setRAIDbLevel, setWeight, waitForTotalOrder |
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 ParallelDB_RR(VirtualDatabase vdb) throws java.lang.Exception
ParallelDB_RR
object
vdb
- the virtual database this load balancer belongs to.
java.lang.Exception
- if an error occursMethod Detail |
public DatabaseBackend chooseBackendForReadRequest(AbstractRequest request) throws java.sql.SQLException
chooseBackendForReadRequest
in class ParallelDB
request
- request to execute
java.sql.SQLException
- if an error occurspublic DatabaseBackend chooseBackendForWriteRequest(AbstractWriteRequest request) throws java.sql.SQLException
chooseBackendForWriteRequest
in class ParallelDB
request
- request to execute
java.sql.SQLException
- if an error occurspublic java.lang.String getInformation()
AbstractLoadBalancer
getInformation
in interface AbstractLoadBalancerMBean
getInformation
in class AbstractLoadBalancer
String
containing informationAbstractLoadBalancer.getInformation()
public java.lang.String getParallelDBXml()
ParallelDB
getParallelDBXml
in class ParallelDB
ParallelDB.getParallelDBXml()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |