Java Doc for ControlImpl.java in  » Database-JDBC-Connection-Pool » jotm-2.0.10 » org » objectweb » jotm » 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 » jotm 2.0.10 » org.objectweb.jotm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.rmi.PortableRemoteObject
      org.objectweb.jotm.ControlImpl

ControlImpl
public class ControlImpl extends PortableRemoteObject implements Control,Resource,Coordinator,Terminator,RecoveryCoordinator,TimerEventListener(Code)
Implementation of the object that represents a transaction. This remote object has been created by a TransactionFactory. It extends The RemoteControl Remote Interface
See Also:   org.objectweb.jotm.TransactionFactory



Constructor Summary
 ControlImpl(int timeout, Xid x, Object supco)
    

Method Summary
public synchronized  voidcommit(boolean report_heuristics)
    
public synchronized  voidcommit()
     Sub-coordinator received commit from its superior.
public  voidcommit_one_phase()
     Sub-coordinator received commit_one_phase from its superior.
 voidding()
     timeout expired on this transaction.
public synchronized  voidforget()
    
public  Coordinatorget_coordinator()
    
public  intget_status()
    
public  Terminatorget_terminator()
    
public  Stringget_transaction_name()
     Gets a String that represents the transaction name.
public  booleanis_same_transaction(Coordinator tc)
    
public synchronized  intprepare()
     Sub-coordinator has received prepare from its superior.
public synchronized  RecoveryCoordinatorregister_resource(Resource res)
    
public synchronized  voidregister_synchronization(RemoteSynchro sync)
    
public  intreplay_completion(Resource res)
    
public synchronized  voidrollback()
     Rolls back this transaction branch.
public synchronized  voidrollback_only()
    
public  voidtimeoutExpired(Object arg)
    


Constructor Detail
ControlImpl
ControlImpl(int timeout, Xid x, Object supco) throws RemoteException(Code)
Constructor for create or recreate
Parameters:
  timeout - Timeout in seconds for this transaction
Parameters:
  x - Xid allocated to this transaction
Parameters:
  supco - Superior coordinator (null if create); must be aorg.objectweb.jotm.Coordinator or a org.omg.CosTransactions.Coordinator




Method Detail
commit
public synchronized void commit(boolean report_heuristics) throws RemoteException(Code)
Commits this transaction
Parameters:
  report_heuristics - want to report heuristics if any
exception:
  TransactionRolledbackException - the transaction has been rolled back
exception:
  HeuristicMixed - Resources have rolled back
exception:
  HeuristicHazard - Resources may have rolled back



commit
public synchronized void commit() throws RemoteException(Code)
Sub-coordinator received commit from its superior. It must more or less do the same things that the phase 2 of the 2PC.



commit_one_phase
public void commit_one_phase() throws RemoteException(Code)
Sub-coordinator received commit_one_phase from its superior. It is more or less a Terminator.commit().



ding
void ding()(Code)
timeout expired on this transaction. This method is not private, because it's used by Timers



forget
public synchronized void forget() throws RemoteException(Code)
forget transaction



get_coordinator
public Coordinator get_coordinator() throws RemoteException(Code)
Gets the Coordinator object for this transaction Coordinator for this transaction



get_status
public int get_status() throws RemoteException(Code)
Gets the current status of this transaction current transaction status



get_terminator
public Terminator get_terminator() throws RemoteException(Code)
Gets the Terminator object for this transaction Terminator for this transaction



get_transaction_name
public String get_transaction_name() throws RemoteException(Code)
Gets a String that represents the transaction name. Only the Format Id and the Global Id are used to build it : The Branch Qualifier is not used. Transaction Name



is_same_transaction
public boolean is_same_transaction(Coordinator tc) throws RemoteException(Code)
Tests if the given coordinator represents this transaction
Parameters:
  tc - Coordinator to be compared to this transaction true if it is the same transaction



prepare
public synchronized int prepare() throws RemoteException(Code)
Sub-coordinator has received prepare from its superior. It must more or less do the same things that the phase 1 of the 2PC. Vote : commit, roollback or read-only.



register_resource
public synchronized RecoveryCoordinator register_resource(Resource res) throws RemoteException(Code)
Registers a Resource object for this transaction
Parameters:
  res - Resource to be registered RecoveryCoordinator used for replay_completion



register_synchronization
public synchronized void register_synchronization(RemoteSynchro sync) throws RemoteException(Code)
Registers a Synchronization object for this transaction
Parameters:
  sync - RemoteSynchro to be registered



replay_completion
public int replay_completion(Resource res) throws RemoteException(Code)
Asks the status of this transaction, after recovery of a Resource
Parameters:
  res - Resource recovering



rollback
public synchronized void rollback() throws RemoteException(Code)
Rolls back this transaction branch. Can be a sub-coordinator or a normal coordinator.



rollback_only
public synchronized void rollback_only() throws RemoteException(Code)
Asks to rollback the transaction



timeoutExpired
public void timeoutExpired(Object arg)(Code)
The transaction timeout has expired Do not synchronize this method to avoid deadlocks!



Methods inherited from javax.rmi.PortableRemoteObject
public static void connect(Remote target, Remote source) throws RemoteException(Code)(Java Doc)
public static void exportObject(Remote obj) throws RemoteException(Code)(Java Doc)
public static java.lang.Object narrow(java.lang.Object narrowFrom, java.lang.Class narrowTo) throws ClassCastException(Code)(Java Doc)
public static Remote toStub(Remote obj) throws NoSuchObjectException(Code)(Java Doc)
public static void unexportObject(Remote obj) throws NoSuchObjectException(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.