org.openorb.pss.connector.file

Class FileResource

public class FileResource extends ResourcePOA

This class is a transactional resource implementation required for transactional session management.

Author: Jerome Daniel

Constructor Summary
FileResource(TransactionalFileSession tfs, Coordinator coordinator)
Constructor
Method Summary
voidcommit()
This operation is used to commit all data manager
voidcommit_one_phase()
This operation is used to commit all data manager
voidforget()
This operation is used to forget a transaction
Voteprepare()
This operation is called by OTS to proceed the 1st phase of the 2.P.C protocol.
voidremoveItself()
This operation is used to remove this resource.
voidrollback()
This operation is used to rollback all data manager

Constructor Detail

FileResource

public FileResource(TransactionalFileSession tfs, Coordinator coordinator)
Constructor

Method Detail

commit

public void commit()
This operation is used to commit all data manager

commit_one_phase

public void commit_one_phase()
This operation is used to commit all data manager

forget

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

prepare

public Vote prepare()
This operation is called by OTS to proceed the 1st phase of the 2.P.C protocol.

removeItself

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

rollback

public void rollback()
This operation is used to rollback all data manager