Java Doc for RAIDb1QueryLevelScheduler.java in  » Database-JDBC-Connection-Pool » sequoia-2.10.9 » org » continuent » sequoia » controller » scheduler » raidb1 » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database JDBC Connection Pool » sequoia 2.10.9 » org.continuent.sequoia.controller.scheduler.raidb1 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.continuent.sequoia.controller.scheduler.AbstractScheduler
      org.continuent.sequoia.controller.scheduler.raidb1.RAIDb1QueryLevelScheduler

RAIDb1QueryLevelScheduler
public class RAIDb1QueryLevelScheduler extends AbstractScheduler (Code)
This scheduler provides query level scheduling for RAIDb-1 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 Zuylen
author:
  

version:
   1.0



Constructor Summary
public  RAIDb1QueryLevelScheduler()
    

Method Summary
final protected  voidcommitTransaction(long transactionId)
    
public  StringgetXmlImpl()
    
final public  voidnotifyStoredProcedureCompleted(StoredProcedure proc)
    
final public synchronized  voidnotifyWriteCompleted(AbstractWriteRequest request)
    
final public  voidreadCompletedNotify(SelectRequest request)
    
final protected  voidreleaseSavepointTransaction(long transactionId, String name)
    
final protected  voidrollbackTransaction(long transactionId)
    
final protected  voidrollbackTransaction(long transactionId, String savepointName)
    
public  voidscheduleNonSuspendedReadRequest(SelectRequest request)
    
final public synchronized  voidscheduleNonSuspendedStoredProcedure(StoredProcedure proc)
    
public  voidscheduleNonSuspendedWriteRequest(AbstractWriteRequest request)
    
final protected  voidsetSavepointTransaction(long transactionId, String name)
    


Constructor Detail
RAIDb1QueryLevelScheduler
public RAIDb1QueryLevelScheduler()(Code)
Creates a new Query Level Scheduler




Method Detail
commitTransaction
final protected void commitTransaction(long transactionId)(Code)

See Also:   org.continuent.sequoia.controller.scheduler.AbstractScheduler.commitTransaction(long)



getXmlImpl
public String getXmlImpl()(Code)

See Also:   org.continuent.sequoia.controller.scheduler.AbstractScheduler.getXmlImpl



notifyStoredProcedureCompleted
final public void notifyStoredProcedureCompleted(StoredProcedure proc)(Code)

See Also:   org.continuent.sequoia.controller.scheduler.AbstractScheduler.notifyStoredProcedureCompleted(org.continuent.sequoia.controller.requests.StoredProcedure)



notifyWriteCompleted
final public synchronized void notifyWriteCompleted(AbstractWriteRequest request)(Code)

See Also:   org.continuent.sequoia.controller.scheduler.AbstractScheduler.notifyWriteCompleted(AbstractWriteRequest)



readCompletedNotify
final public void readCompletedNotify(SelectRequest request)(Code)

See Also:   org.continuent.sequoia.controller.scheduler.AbstractScheduler.readCompletedNotify(SelectRequest)



releaseSavepointTransaction
final protected void releaseSavepointTransaction(long transactionId, String name)(Code)

See Also:   org.continuent.sequoia.controller.scheduler.AbstractScheduler.releaseSavepointTransaction(longString)



rollbackTransaction
final protected void rollbackTransaction(long transactionId)(Code)

See Also:   org.continuent.sequoia.controller.scheduler.AbstractScheduler.rollbackTransaction(long)



rollbackTransaction
final protected void rollbackTransaction(long transactionId, String savepointName)(Code)

See Also:   org.continuent.sequoia.controller.scheduler.AbstractScheduler.rollbackTransaction(longString)



scheduleNonSuspendedReadRequest
public void scheduleNonSuspendedReadRequest(SelectRequest request) throws SQLException(Code)

See Also:   org.continuent.sequoia.controller.scheduler.AbstractScheduler.scheduleNonSuspendedReadRequest(SelectRequest)



scheduleNonSuspendedStoredProcedure
final public synchronized void scheduleNonSuspendedStoredProcedure(StoredProcedure proc) throws SQLException, RollbackException(Code)

See Also:   org.continuent.sequoia.controller.scheduler.AbstractScheduler.scheduleNonSuspendedStoredProcedure(org.continuent.sequoia.controller.requests.StoredProcedure)



scheduleNonSuspendedWriteRequest
public void scheduleNonSuspendedWriteRequest(AbstractWriteRequest request) throws SQLException(Code)

See Also:   org.continuent.sequoia.controller.scheduler.AbstractScheduler.scheduleWriteRequest(AbstractWriteRequest)



setSavepointTransaction
final protected void setSavepointTransaction(long transactionId, String name)(Code)

See Also:   org.continuent.sequoia.controller.scheduler.AbstractScheduler.setSavepointTransaction(longString)



Fields inherited from org.continuent.sequoia.controller.scheduler.AbstractScheduler
protected Hashtable activePersistentConnections(Code)(Java Doc)
protected static Trace logger(Code)(Java Doc)
protected int parsingGranularity(Code)(Java Doc)
protected int raidbLevel(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.