org.openorb.ots.Impl
Class Control

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CosTransactions.ControlPOA
          extended by org.openorb.ots.Impl.Control
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, ControlOperations

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, org.omg.PortableServer.POA poa, org.omg.PortableServer.POA recovery_poa, org.apache.avalon.framework.logger.Logger logger)
          Constructor
Control(int time_out, Manager manager, XID parent_xid, org.omg.PortableServer.POA poa, TransIdentity[] parents, org.apache.avalon.framework.logger.Logger logger)
          This constructor is used to create a sub transaction.
 
Method Summary
 Coordinator get_coordinator()
          This operation returns a Coordinator object, which supports operations needed by resources to participate in the transaction.
 Terminator get_terminator()
          This operation returns a Terminator object, which supports operations to end the transaction.
 Coordinator getCoordinator()
           
 SubTransTerminator getSubTransTerminator()
           
 void removeItself()
          This operation is used to remove this object from the POA
 void update()
          This operation is called by the transaction factory to update the coordinator data after the control creation completion.
 
Methods inherited from class org.omg.CosTransactions.ControlPOA
_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

Control

public Control(int time_out,
               Manager manager,
               PropagationContext ctx,
               TransactionFactory factory,
               org.omg.PortableServer.POA poa,
               org.omg.PortableServer.POA recovery_poa,
               org.apache.avalon.framework.logger.Logger logger)
Constructor


Control

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

Method Detail

getSubTransTerminator

public SubTransTerminator getSubTransTerminator()

getCoordinator

public Coordinator getCoordinator()

get_terminator

public Terminator get_terminator()
                          throws Unavailable
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:
Unavailable - The Unavailable exception may be raised if the Control cannot provide the requested object.

get_coordinator

public Coordinator get_coordinator()
                            throws Unavailable
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:
Unavailable - The Unavailable exception may be raised if the control cannot provide the requested object.

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.


removeItself

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