org.openorb.ots.Impl
Class Control
java.lang.Object
|
+--org.omg.PortableServer.Servant
|
+--org.omg.CosTransactions.ControlPOA
|
+--org.openorb.ots.Impl.Control
- All Implemented Interfaces:
- ControlOperations, org.omg.CORBA.portable.InvokeHandler
- 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. |
| 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 |
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.
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