org.openorb.pss.connector.file
Class FileResource

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CosTransactions.ResourcePOA
          extended by 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

Constructor Summary
FileResource(TransactionalFileSession tfs, org.omg.CosTransactions.Coordinator coordinator)
          Constructor
 
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, _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

FileResource

public FileResource(TransactionalFileSession tfs,
                    org.omg.CosTransactions.Coordinator coordinator)
Constructor

Method Detail

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.

Throws:
org.omg.CosTransactions.HeuristicMixed
org.omg.CosTransactions.HeuristicHazard

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

Throws:
org.omg.CosTransactions.HeuristicCommit
org.omg.CosTransactions.HeuristicMixed
org.omg.CosTransactions.HeuristicHazard

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

Throws:
org.omg.CosTransactions.NotPrepared
org.omg.CosTransactions.HeuristicRollback
org.omg.CosTransactions.HeuristicMixed
org.omg.CosTransactions.HeuristicHazard

commit_one_phase

public void commit_one_phase()
                      throws org.omg.CosTransactions.HeuristicHazard
This operation is used to commit all data manager

Throws:
org.omg.CosTransactions.HeuristicHazard

forget

public void forget()
This operation is used to forget a transaction


removeItself

public void removeItself()
This operation is used to remove this resource. It unregister itself from the POA.