| org.continuent.sequoia.controller.loadbalancer.paralleldb.ParallelDB org.continuent.sequoia.controller.loadbalancer.paralleldb.ParallelDB_RR
ParallelDB_RR | public class ParallelDB_RR extends ParallelDB (Code) | | This class defines a ParallelDB_RR load balancer. This load balancer performs
simple round-robin for read and write queries execution.
author: Emmanuel Cecchet version: 1.0 |
ParallelDB_RR | public ParallelDB_RR(VirtualDatabase vdb) throws Exception(Code) | | Creates a new ParallelDB_RR object
Parameters: vdb - the virtual database this load balancer belongs to. throws: Exception - if an error occurs |
chooseBackendForReadRequest | public DatabaseBackend chooseBackendForReadRequest(AbstractRequest request) throws SQLException(Code) | | Choose a backend using a round-robin algorithm for read request execution.
Parameters: request - request to execute the chosen backend throws: SQLException - if an error occurs |
Fields inherited from org.continuent.sequoia.controller.loadbalancer.paralleldb.ParallelDB | static Trace endUserLogger(Code)(Java Doc)
|
Methods inherited from org.continuent.sequoia.controller.loadbalancer.paralleldb.ParallelDB | public void abort(TransactionMetaData tm) throws SQLException(Code)(Java Doc) public void begin(TransactionMetaData tm) throws SQLException(Code)(Java Doc) public ExecuteResult callableStatementExecute(StoredProcedure proc, MetadataCache metadataCache) throws SQLException(Code)(Java Doc) public ControllerResultSet callableStatementExecuteQuery(StoredProcedure proc, MetadataCache metadataCache) throws SQLException(Code)(Java Doc) public ExecuteUpdateResult callableStatementExecuteUpdate(StoredProcedure proc) throws SQLException(Code)(Java Doc) abstract public DatabaseBackend chooseBackendForReadRequest(AbstractRequest request) throws SQLException(Code)(Java Doc) abstract public DatabaseBackend chooseBackendForWriteRequest(AbstractWriteRequest request) throws SQLException(Code)(Java Doc) public void closePersistentConnection(String login, long persistentConnectionId) throws SQLException(Code)(Java Doc) public void commit(TransactionMetaData tm) throws SQLException(Code)(Java Doc) public void disableBackend(DatabaseBackend db, boolean forceDisable) throws SQLException(Code)(Java Doc) public void enableBackend(DatabaseBackend db, boolean writeEnabled) throws SQLException(Code)(Java Doc) public int getNumberOfEnabledBackends()(Code)(Java Doc) abstract public String getParallelDBXml()(Code)(Java Doc) public ControllerResultSet getPreparedStatementGetMetaData(AbstractRequest request) throws SQLException(Code)(Java Doc) public String getXmlImpl()(Code)(Java Doc) public void openPersistentConnection(String login, long persistentConnectionId) throws SQLException(Code)(Java Doc) public ExecuteResult readOnlyCallableStatementExecute(StoredProcedure proc, MetadataCache metadataCache) throws SQLException(Code)(Java Doc) public ControllerResultSet readOnlyCallableStatementExecuteQuery(StoredProcedure proc, MetadataCache metadataCache) throws SQLException(Code)(Java Doc) public void releaseSavepoint(TransactionMetaData tm, String savepointName) throws SQLException(Code)(Java Doc) public void rollback(TransactionMetaData tm) throws SQLException(Code)(Java Doc) public void rollbackToSavepoint(TransactionMetaData tm, String savepointName) throws SQLException(Code)(Java Doc) public void setSavepoint(TransactionMetaData tm, String savepointName) throws SQLException(Code)(Java Doc) public ExecuteResult statementExecute(AbstractRequest request, MetadataCache metadataCache) throws SQLException, AllBackendsFailedException(Code)(Java Doc) public ControllerResultSet statementExecuteQuery(SelectRequest request, MetadataCache metadataCache) throws SQLException(Code)(Java Doc) public ExecuteUpdateResult statementExecuteUpdate(AbstractWriteRequest request) throws AllBackendsFailedException, SQLException(Code)(Java Doc) public GeneratedKeysResult statementExecuteUpdateWithKeys(AbstractWriteRequest request, MetadataCache metadataCache) throws AllBackendsFailedException, SQLException(Code)(Java Doc)
|
|
|