java.lang .Object org.continuent.sequoia.controller.scheduler .AbstractScheduler org.continuent.sequoia.controller.scheduler.raidb2 .RAIDb2QueryLevelScheduler RAIDb2QueryLevelScheduler public class RAIDb2QueryLevelScheduler extends AbstractScheduler (Code) This scheduler provides query level scheduling for RAIDb-2 controllers. Reads
can execute in parallel until a write comes in. Then the write waits for the
completion of the reads. Any new read is stacked after the write and they are
released together when the write has completed its execution.
author: Emmanuel Cecchet author: Jean-Bernard van Zuylenauthor: version: 1.0
RAIDb2QueryLevelScheduler public RAIDb2QueryLevelScheduler()(Code) Creates a new Query Level Scheduler
Methods inherited from org.continuent.sequoia.controller.scheduler.AbstractScheduler final public void begin(TransactionMetaData tm, boolean isLazyStart, AbstractRequest request) throws SQLException (Code) (Java Doc) final public void beginCompleted(long transactionId)(Code) (Java Doc) public void closePersistentConnectionCompleted(long persistentConnectionId)(Code) (Java Doc) final public void commit(TransactionMetaData tm, boolean emptyTransaction, DistributedCommit dmsg) throws SQLException (Code) (Java Doc) final public void commitCompleted(TransactionMetaData tm, boolean isSuccess)(Code) (Java Doc) abstract protected void commitTransaction(long transactionId)(Code) (Java Doc) final public Map getActiveReadRequests()(Code) (Java Doc) final public List getActiveTransactions()(Code) (Java Doc) final public Map getActiveWriteRequests()(Code) (Java Doc) public long getNextTransactionId()(Code) (Java Doc) public int getNumberRead()(Code) (Java Doc) public int getNumberWrite()(Code) (Java Doc) public Hashtable getOpenPersistentConnections()(Code) (Java Doc) final public int getParsingGranularity()(Code) (Java Doc) public int getPendingTransactions()(Code) (Java Doc) final public int getPendingWrites()(Code) (Java Doc) public String getPersistentConnectionLogin(Long persistentConnectionId)(Code) (Java Doc) final public int getRAIDbLevel()(Code) (Java Doc) public String [] getSchedulerData()(Code) (Java Doc) public String getXml()(Code) (Java Doc) abstract protected String getXmlImpl()(Code) (Java Doc) public boolean hasPersistentConnection(long persistentConnectionId)(Code) (Java Doc) public synchronized int incrementSavepointId()(Code) (Java Doc) final public void initializeTransactionId(long transactionId)(Code) (Java Doc) public boolean isActiveRequest(long requestId)(Code) (Java Doc) public boolean isSuspendedRequest(Object obj)(Code) (Java Doc) public boolean isSuspendedWrites()(Code) (Java Doc) public void mergeDatabaseSchema(DatabaseSchema dbs)(Code) (Java Doc) abstract protected void notifyStoredProcedureCompleted(StoredProcedure proc)(Code) (Java Doc) abstract protected void notifyWriteCompleted(AbstractWriteRequest request)(Code) (Java Doc) public void openPersistentConnectionCompleted(long persistentConnectionId, boolean success)(Code) (Java Doc) final public void readCompleted(SelectRequest request) throws SQLException (Code) (Java Doc) abstract protected void readCompletedNotify(SelectRequest request)(Code) (Java Doc) final public void releaseSavepoint(TransactionMetaData tm, String name, DistributedReleaseSavepoint dmsg) throws SQLException (Code) (Java Doc) abstract protected void releaseSavepointTransaction(long transactionId, String name)(Code) (Java Doc) final public void resumeNewPersistentConnections()(Code) (Java Doc) final public void resumeNewTransactions()(Code) (Java Doc) public void resumeOpenClosePersistentConnection()(Code) (Java Doc) public void resumeWrites()(Code) (Java Doc) public void resumeWritesTransactionsAndPersistentConnections()(Code) (Java Doc) final public void rollback(TransactionMetaData tm, DistributedRollback dmsg) throws SQLException (Code) (Java Doc) final public void rollback(TransactionMetaData tm, String savepointName, DistributedRollbackToSavepoint dmsg) throws SQLException (Code) (Java Doc) final public void rollbackCompleted(TransactionMetaData tm, boolean isSuccess)(Code) (Java Doc) abstract protected void rollbackTransaction(long transactionId)(Code) (Java Doc) abstract protected void rollbackTransaction(long transactionId, String savepointName)(Code) (Java Doc) final public void savepointCompleted(long transactionId)(Code) (Java Doc) public void scheduleClosePersistentConnection()(Code) (Java Doc) abstract protected void scheduleNonSuspendedReadRequest(SelectRequest request) throws SQLException (Code) (Java Doc) abstract protected void scheduleNonSuspendedStoredProcedure(StoredProcedure proc) throws SQLException , RollbackException (Code) (Java Doc) abstract protected void scheduleNonSuspendedWriteRequest(AbstractWriteRequest request) throws SQLException , RollbackException (Code) (Java Doc) public void scheduleOpenPersistentConnection(DistributedOpenPersistentConnection dmsg)(Code) (Java Doc) public void scheduleReadRequest(SelectRequest request) throws SQLException (Code) (Java Doc) final public void scheduleStoredProcedure(StoredProcedure proc) throws SQLException , RollbackException (Code) (Java Doc) final public void scheduleWriteRequest(AbstractWriteRequest request) throws SQLException , RollbackException (Code) (Java Doc) public void setControllerId(long controllerId)(Code) (Java Doc) public void setDatabaseSchema(DatabaseSchema dbs)(Code) (Java Doc) final public int setSavepoint(TransactionMetaData tm) throws SQLException (Code) (Java Doc) final public void setSavepoint(TransactionMetaData tm, String name, DistributedSetSavepoint dmsg) throws SQLException (Code) (Java Doc) abstract protected void setSavepointTransaction(long transactionId, String name)(Code) (Java Doc) final public void storedProcedureCompleted(StoredProcedure proc) throws SQLException (Code) (Java Doc) public void suspendNewPersistentConnections()(Code) (Java Doc) final public void suspendNewTransactions()(Code) (Java Doc) public void suspendNewTransactionsAndWrites()(Code) (Java Doc) public void suspendNewWrites()(Code) (Java Doc) public void suspendOpenClosePersistentConnection()(Code) (Java Doc) public void waitForPendingOpenClosePersistentConnection()(Code) (Java Doc) public void waitForPersistentConnectionsToComplete() throws SQLException (Code) (Java Doc) public void waitForRequestCompletion(long requestId)(Code) (Java Doc) public void waitForSuspendedTransactionsToComplete() throws SQLException (Code) (Java Doc) public void waitForSuspendedWritesToComplete() throws SQLException (Code) (Java Doc) final public void writeCompleted(AbstractWriteRequest request) throws SQLException (Code) (Java Doc)