org.openorb.ots.Impl

Class Control

public class Control extends ControlPOA

This class is the implementation of the Control interface.

Author: Jerome Daniel

Constructor Summary
Control(int time_out, Manager manager, PropagationContext ctx, TransactionFactory factory, POA poa, POA recovery_poa, Logger logger)
Constructor
Control(int time_out, Manager manager, XID parent_xid, POA poa, TransIdentity[] parents, Logger logger)
This constructor is used to create a sub transaction.
Method Summary
CoordinatorgetCoordinator()
SubTransTerminatorgetSubTransTerminator()
Coordinatorget_coordinator()
This operation returns a Coordinator object, which supports operations needed by resources to participate in the transaction.
Terminatorget_terminator()
This operation returns a Terminator object, which supports operations to end the transaction.
voidremoveItself()
This operation is used to remove this object from the POA
voidupdate()
This operation is called by the transaction factory to update the coordinator data after the control creation completion.

Constructor Detail

Control

public Control(int time_out, Manager manager, PropagationContext ctx, TransactionFactory factory, POA poa, POA recovery_poa, Logger logger)
Constructor

Control

public Control(int time_out, Manager manager, XID parent_xid, POA poa, TransIdentity[] parents, Logger logger)
This constructor is used to create a sub transaction.

Method Detail

getCoordinator

public Coordinator getCoordinator()

getSubTransTerminator

public SubTransTerminator getSubTransTerminator()

get_coordinator

public Coordinator get_coordinator()
This operation returns a Coordinator object, which supports operations needed by resources to participate in the transaction.

Returns: An object is returned that supports the Coordinator interface. The object can be used to register resources for the transaction associated with the Control.

Throws: org.omg.CosTransactions.Unavailable The Unavailable exception may be raised if the control cannot provide the requested object.

get_terminator

public Terminator get_terminator()
This operation returns a Terminator object, which supports operations to end the transaction.

Returns: An object is returned that supports the Terminator interface. The object can be used to rollback or commit the transaction associated with the Control.

Throws: org.omg.CosTransactions.Unavailable The Unavailable exception may be raised if the Control cannot provide the requested object.

removeItself

public void removeItself()
This operation is used to remove this object from the POA

update

public void update()
This operation is called by the transaction factory to update the coordinator data after the control creation completion. Indeed, it is not possible to get the Control reference from its constructor.