org.openorb.ots.Impl
Class PseudoControl

java.lang.Object
  extended byorg.omg.CORBA.LocalObject
      extended byorg.openorb.ots.Impl.PseudoControl
All Implemented Interfaces:
Control, ControlOperations, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.Object, java.io.Serializable

public class PseudoControl
extends org.omg.CORBA.LocalObject
implements Control

This object is used to provide a pseudo control object. On the client and server sides, the control object cannot be found ( since its reference is not set in the propagation context ). However, this object only provides two accessors to get the coordinator and the terminator. These objects reference are set in the propagation context, so it is possible to simulate the original control object.

Author:
Jerome Daniel
See Also:
Serialized Form

Constructor Summary
PseudoControl(Coordinator coord, Terminator term)
          Constructor.
 
Method Summary
 Coordinator get_coordinator()
          Return the coordinator
 Terminator get_terminator()
          Return the terminator
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

PseudoControl

public PseudoControl(Coordinator coord,
                     Terminator term)
Constructor. The parameters are the coordinator and terminator references.

Method Detail

get_terminator

public Terminator get_terminator()
                          throws Unavailable
Return the terminator

Specified by:
get_terminator in interface ControlOperations
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
Return the coordinator

Specified by:
get_coordinator in interface ControlOperations
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.