Java Doc for AbstractResourceManager.java in  » ESB » mule » org » mule » util » xa » 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 » ESB » mule » org.mule.util.xa 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mule.util.xa.AbstractResourceManager

All known Subclasses:   org.mule.util.xa.AbstractXAResourceManager,
AbstractResourceManager
abstract public class AbstractResourceManager (Code)
This code is based on code coming from the commons-transaction project.


Field Summary
final protected static  intDEFAULT_COMMIT_TIMEOUT_FACTOR
    
final protected static  intDEFAULT_TIMEOUT_MSECS
    
final protected static  intOPERATION_MODE_RECOVERING
    
final protected static  intOPERATION_MODE_STARTED
    
final protected static  intOPERATION_MODE_STARTING
    
final protected static  intOPERATION_MODE_STOPPED
    
final protected static  intOPERATION_MODE_STOPPING
    
final public static  intSHUTDOWN_MODE_KILL
    
final public static  intSHUTDOWN_MODE_NORMAL
    
final public static  intSHUTDOWN_MODE_ROLLBACK
    
protected  longdefaultTimeout
    
protected  booleandirty
    
protected  CollectionglobalTransactions
    
protected  Loglogger
    
protected  intoperationMode
    


Method Summary
protected  voidassureReady()
     Check that the FileManager is ready.
protected  voidassureStarted()
     Check that the FileManager is started.
public  voidbeginTransaction(AbstractTransactionContext context)
    
public  voidcommitTransaction(AbstractTransactionContext context)
    
abstract protected  AbstractTransactionContextcreateTransactionContext(Object session)
    
abstract protected  voiddoBegin(AbstractTransactionContext context)
    
abstract protected  voiddoCommit(AbstractTransactionContext context)
    
abstract protected  intdoPrepare(AbstractTransactionContext context)
    
abstract protected  voiddoRollback(AbstractTransactionContext context)
    
protected  voiddoStart()
    
public  longgetDefaultTransactionTimeout()
     Gets the default transaction timeout in milliseconds.
abstract protected  LoggetLogger()
    
public  intprepareTransaction(AbstractTransactionContext context)
    
protected  voidrecover()
    
public  voidrollbackTransaction(AbstractTransactionContext context)
    
public  voidsetDefaultTransactionTimeout(long timeout)
     Sets the default transaction timeout.
protected  voidsetDirty(AbstractTransactionContext context, Throwable t)
     Flag this resource manager as dirty.
public  voidsetTransactionRollbackOnly(AbstractTransactionContext context)
    
protected  booleanshutdown(int mode, long timeoutMSecs)
    
public synchronized  voidstart()
    
public  AbstractTransactionContextstartTransaction(Object session)
     Starts a new transaction and associates it with the current thread.
public synchronized  voidstop()
    
public synchronized  booleanstop(int mode)
    
public synchronized  booleanstop(int mode, long timeOut)
    
protected  booleanwaitForAllTxToStop(long timeoutMSecs)
    

Field Detail
DEFAULT_COMMIT_TIMEOUT_FACTOR
final protected static int DEFAULT_COMMIT_TIMEOUT_FACTOR(Code)



DEFAULT_TIMEOUT_MSECS
final protected static int DEFAULT_TIMEOUT_MSECS(Code)



OPERATION_MODE_RECOVERING
final protected static int OPERATION_MODE_RECOVERING(Code)



OPERATION_MODE_STARTED
final protected static int OPERATION_MODE_STARTED(Code)



OPERATION_MODE_STARTING
final protected static int OPERATION_MODE_STARTING(Code)



OPERATION_MODE_STOPPED
final protected static int OPERATION_MODE_STOPPED(Code)



OPERATION_MODE_STOPPING
final protected static int OPERATION_MODE_STOPPING(Code)



SHUTDOWN_MODE_KILL
final public static int SHUTDOWN_MODE_KILL(Code)
Shutdown mode: Try to stop active transaction NOW, do no rollbacks



SHUTDOWN_MODE_NORMAL
final public static int SHUTDOWN_MODE_NORMAL(Code)
Shutdown mode: Wait for all transactions to complete



SHUTDOWN_MODE_ROLLBACK
final public static int SHUTDOWN_MODE_ROLLBACK(Code)
Shutdown mode: Try to roll back all active transactions



defaultTimeout
protected long defaultTimeout(Code)



dirty
protected boolean dirty(Code)



globalTransactions
protected Collection globalTransactions(Code)



logger
protected Log logger(Code)



operationMode
protected int operationMode(Code)





Method Detail
assureReady
protected void assureReady() throws ResourceManagerSystemException(Code)
Check that the FileManager is ready.
throws:
  FileManagerSystemException - if the FileManager is neither started notstopping.



assureStarted
protected void assureStarted() throws ResourceManagerSystemException(Code)
Check that the FileManager is started.
throws:
  FileManagerSystemException - if the FileManager is not started.



beginTransaction
public void beginTransaction(AbstractTransactionContext context) throws ResourceManagerException(Code)



commitTransaction
public void commitTransaction(AbstractTransactionContext context) throws ResourceManagerException(Code)



createTransactionContext
abstract protected AbstractTransactionContext createTransactionContext(Object session)(Code)



doBegin
abstract protected void doBegin(AbstractTransactionContext context)(Code)



doCommit
abstract protected void doCommit(AbstractTransactionContext context) throws ResourceManagerException(Code)



doPrepare
abstract protected int doPrepare(AbstractTransactionContext context)(Code)



doRollback
abstract protected void doRollback(AbstractTransactionContext context) throws ResourceManagerException(Code)



doStart
protected void doStart() throws ResourceManagerSystemException(Code)



getDefaultTransactionTimeout
public long getDefaultTransactionTimeout()(Code)
Gets the default transaction timeout in milliseconds.



getLogger
abstract protected Log getLogger()(Code)



prepareTransaction
public int prepareTransaction(AbstractTransactionContext context) throws ResourceManagerException(Code)



recover
protected void recover() throws ResourceManagerSystemException(Code)



rollbackTransaction
public void rollbackTransaction(AbstractTransactionContext context) throws ResourceManagerException(Code)



setDefaultTransactionTimeout
public void setDefaultTransactionTimeout(long timeout)(Code)
Sets the default transaction timeout.
Parameters:
  timeout - timeout in milliseconds



setDirty
protected void setDirty(AbstractTransactionContext context, Throwable t)(Code)
Flag this resource manager as dirty. No more operations will be allowed until a recovery has been successfully performed.
Parameters:
  context -
Parameters:
  t -



setTransactionRollbackOnly
public void setTransactionRollbackOnly(AbstractTransactionContext context) throws ResourceManagerException(Code)



shutdown
protected boolean shutdown(int mode, long timeoutMSecs)(Code)



start
public synchronized void start() throws ResourceManagerSystemException(Code)



startTransaction
public AbstractTransactionContext startTransaction(Object session) throws ResourceManagerException(Code)
Starts a new transaction and associates it with the current thread. All subsequent changes in the same thread made to the map are invisible from other threads until AbstractResourceManager.commitTransaction() is called. Use AbstractResourceManager.rollbackTransaction() to discard your changes. After calling either method there will be no transaction associated to the current thread any longer.

Caution: Be careful to finally call one of those methods, as otherwise the transaction will lurk around for ever.
See Also:   AbstractResourceManager.prepareTransaction()
See Also:   AbstractResourceManager.commitTransaction()
See Also:   AbstractResourceManager.rollbackTransaction()



stop
public synchronized void stop() throws ResourceManagerSystemException(Code)



stop
public synchronized boolean stop(int mode) throws ResourceManagerSystemException(Code)



stop
public synchronized boolean stop(int mode, long timeOut) throws ResourceManagerSystemException(Code)



waitForAllTxToStop
protected boolean waitForAllTxToStop(long timeoutMSecs)(Code)



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.