org.objectweb.jonas_tm
Class ControlResourceImpl

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
        |
        +--org.omg.CosTransactions._ResourceImplBase
              |
              +--org.objectweb.jonas_tm.ControlResourceImpl
All Implemented Interfaces:
org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.portable.InvokeHandler, org.omg.CORBA.Object, org.omg.CosTransactions.Resource, org.omg.CosTransactions.ResourceOperations, java.io.Serializable

public class ControlResourceImpl
extends org.omg.CosTransactions._ResourceImplBase

This class wraps a JOnAS ControlImpl as a CORBA Resource, allowing it to be registered by a CORBA supcoord.

Author:
Philippe Durieux
See Also:
Serialized Form

Method Summary
 void commit_one_phase()
          commit 1 phase.
 void commit()
          phase 2 of the 2PC.
 void forget()
          forget heuristics about this transaction.
 org.omg.CosTransactions.Vote prepare()
          phase 1 of the 2PC.
 void rollback()
          rollback transaction
 
Methods inherited from class org.omg.CosTransactions._ResourceImplBase
_ids, _invoke
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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
 

Method Detail

prepare

public org.omg.CosTransactions.Vote prepare()
                                     throws org.omg.CosTransactions.HeuristicMixed,
                                            org.omg.CosTransactions.HeuristicHazard
phase 1 of the 2PC.
Overrides:
prepare in class org.omg.CosTransactions._ResourceImplBase
Returns:
int vote commit, rollback, or readonly.

rollback

public void rollback()
              throws org.omg.CosTransactions.HeuristicMixed,
                     org.omg.CosTransactions.HeuristicHazard,
                     org.omg.CosTransactions.HeuristicCommit
rollback transaction
Overrides:
rollback in class org.omg.CosTransactions._ResourceImplBase

commit

public void commit()
            throws org.omg.CosTransactions.NotPrepared,
                   org.omg.CosTransactions.HeuristicRollback,
                   org.omg.CosTransactions.HeuristicMixed,
                   org.omg.CosTransactions.HeuristicHazard
phase 2 of the 2PC.
Overrides:
commit in class org.omg.CosTransactions._ResourceImplBase

commit_one_phase

public void commit_one_phase()
                      throws org.omg.CosTransactions.HeuristicHazard
commit 1 phase.
Overrides:
commit_one_phase in class org.omg.CosTransactions._ResourceImplBase

forget

public void forget()
forget heuristics about this transaction.
Overrides:
forget in class org.omg.CosTransactions._ResourceImplBase