org.objectweb.jonas_tm
Class ControlResourceImpl

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

public class ControlResourceImpl
extends _ResourceImplBase

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

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.
 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 Vote prepare()
             throws HeuristicMixed,
                    HeuristicHazard
phase 1 of the 2PC.

Returns:
int vote commit, rollback, or readonly.
HeuristicMixed
HeuristicHazard

rollback

public void rollback()
              throws HeuristicMixed,
                     HeuristicHazard,
                     HeuristicCommit
rollback transaction

HeuristicMixed
HeuristicHazard
HeuristicCommit

commit

public void commit()
            throws NotPrepared,
                   HeuristicRollback,
                   HeuristicMixed,
                   HeuristicHazard
phase 2 of the 2PC.

NotPrepared
HeuristicRollback
HeuristicMixed
HeuristicHazard

commit_one_phase

public void commit_one_phase()
                      throws HeuristicHazard
commit 1 phase.

HeuristicHazard

forget

public void forget()
forget heuristics about this transaction.