|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.omg.PortableServer.Servant
org.omg.CosTransactions.ResourcePOA
org.openorb.ots.xa.XACoordinator
public class XACoordinator
This class is a coordinator that manages XA Resources.
| Constructor Summary | |
|---|---|
XACoordinator(XID ots_xid,
Coordinator coordinator,
Current current,
org.omg.PortableInterceptor.ORBInitInfo info,
org.apache.avalon.framework.logger.Logger logger)
Constructor |
|
| Method Summary | |
|---|---|
void |
commit_one_phase()
If possible, the resource should commit all changes made as part of the transaction. |
void |
commit()
If necessary, the resource should commit all changes made as part of the transaction. |
void |
endXAResource(javax.transaction.xa.XAResource resource,
boolean success)
End the usage of an XA resource |
void |
forget()
This operation is performed only if the resource raised a heuristic outcome exception to rollback, commit, or commit_one_phase. |
org.apache.avalon.framework.logger.Logger |
getLogger()
|
Vote |
prepare()
This operation is invoked to begin the two-phase commit protocol on the resource. |
void |
registerXAResource(javax.transaction.xa.XAResource resource)
Add an XA resource. |
void |
rollback_after_prepare()
This operation is used to rollback all prepared XA resources. |
void |
rollback()
If necessary, the resource should rollback all changes made as part of the transaction. |
| Methods inherited from class org.omg.CosTransactions.ResourcePOA |
|---|
_all_interfaces, _invoke, _this, _this |
| Methods inherited from class org.omg.PortableServer.Servant |
|---|
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XACoordinator(XID ots_xid,
Coordinator coordinator,
Current current,
org.omg.PortableInterceptor.ORBInitInfo info,
org.apache.avalon.framework.logger.Logger logger)
| Method Detail |
|---|
public Vote prepare()
throws HeuristicMixed,
HeuristicHazard
HeuristicMixed
HeuristicHazard
public void rollback()
throws HeuristicCommit,
HeuristicMixed,
HeuristicHazard
HeuristicCommit
HeuristicMixed
HeuristicHazard
public void commit()
throws NotPrepared,
HeuristicRollback,
HeuristicMixed,
HeuristicHazard
NotPrepared
HeuristicRollback
HeuristicMixed
HeuristicHazard
public void commit_one_phase()
throws HeuristicHazard
HeuristicHazardpublic void forget()
public void rollback_after_prepare()
throws HeuristicCommit,
HeuristicMixed,
HeuristicHazard
HeuristicCommit
HeuristicMixed
HeuristicHazardpublic void registerXAResource(javax.transaction.xa.XAResource resource)
public void endXAResource(javax.transaction.xa.XAResource resource,
boolean success)
public org.apache.avalon.framework.logger.Logger getLogger()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||