tyrex.corba
Class PseudoControl

java.lang.Object
  extended byorg.omg.CORBA.LocalObject
      extended bytyrex.corba.PseudoControl
All Implemented Interfaces:
org.omg.CosTransactions.Control, org.omg.CosTransactions.ControlOperations, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.Object, java.io.Serializable

public class PseudoControl
extends org.omg.CORBA.LocalObject
implements org.omg.CosTransactions.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.

Version:
1.0
Author:
Jerome Daniel
See Also:
Serialized Form

Constructor Summary
PseudoControl(org.omg.CosTransactions.Coordinator coord, org.omg.CosTransactions.Terminator term)
          Constructor.
 
Method Summary
 org.omg.CosTransactions.Coordinator get_coordinator()
          Return the coordinator
 org.omg.CosTransactions.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
clone, equals, finalize, 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(org.omg.CosTransactions.Coordinator coord,
                     org.omg.CosTransactions.Terminator term)
Constructor. The parameters are the coordinator and terminator references.

Method Detail

get_terminator

public org.omg.CosTransactions.Terminator get_terminator()
                                                  throws org.omg.CosTransactions.Unavailable
Return the terminator

Specified by:
get_terminator in interface org.omg.CosTransactions.ControlOperations
Throws:
org.omg.CosTransactions.Unavailable

get_coordinator

public org.omg.CosTransactions.Coordinator get_coordinator()
                                                    throws org.omg.CosTransactions.Unavailable
Return the coordinator

Specified by:
get_coordinator in interface org.omg.CosTransactions.ControlOperations
Throws:
org.omg.CosTransactions.Unavailable


Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.