org.openorb.pss.connector.file
Class FileResource
java.lang.Object
|
+--org.omg.PortableServer.Servant
|
+--org.omg.CosTransactions.ResourcePOA
|
+--org.openorb.pss.connector.file.FileResource
- All Implemented Interfaces:
- org.omg.CORBA.portable.InvokeHandler, org.omg.CosTransactions.ResourceOperations
- public class FileResource
- extends org.omg.CosTransactions.ResourcePOA
This class is a transactional resource implementation required for transactional session management.
- Author:
- Jerome Daniel
|
Method Summary |
void |
commit_one_phase()
This operation is used to commit all data manager |
void |
commit()
This operation is used to commit all data manager |
void |
forget()
This operation is used to forget a transaction |
org.omg.CosTransactions.Vote |
prepare()
This operation is called by OTS to proceed the 1st phase of the 2.P.C protocol. |
void |
removeItself()
This operation is used to remove this resource. |
void |
rollback()
This operation is used to rollback all data manager |
| 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, _get_interface, _is_a, _non_existent, _object_id, _orb, _orb, _poa, _set_delegate, _this_object, _this_object |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileResource
public FileResource(TransactionalFileSession tfs,
org.omg.CosTransactions.Coordinator coordinator)
- Constructor
prepare
public org.omg.CosTransactions.Vote prepare()
throws org.omg.CosTransactions.HeuristicMixed,
org.omg.CosTransactions.HeuristicHazard
- This operation is called by OTS to proceed the 1st phase of the 2.P.C protocol.
- Overrides:
prepare in class org.omg.CosTransactions.ResourcePOA
rollback
public void rollback()
throws org.omg.CosTransactions.HeuristicCommit,
org.omg.CosTransactions.HeuristicMixed,
org.omg.CosTransactions.HeuristicHazard
- This operation is used to rollback all data manager
- Overrides:
rollback in class org.omg.CosTransactions.ResourcePOA
commit
public void commit()
throws org.omg.CosTransactions.NotPrepared,
org.omg.CosTransactions.HeuristicRollback,
org.omg.CosTransactions.HeuristicMixed,
org.omg.CosTransactions.HeuristicHazard
- This operation is used to commit all data manager
- Overrides:
commit in class org.omg.CosTransactions.ResourcePOA
commit_one_phase
public void commit_one_phase()
throws org.omg.CosTransactions.HeuristicHazard
- This operation is used to commit all data manager
- Overrides:
commit_one_phase in class org.omg.CosTransactions.ResourcePOA
forget
public void forget()
- This operation is used to forget a transaction
- Overrides:
forget in class org.omg.CosTransactions.ResourcePOA
removeItself
public void removeItself()
- This operation is used to remove this resource. It unregister itself from the POA.