org.objectweb.jotm
Class ControlResourceImpl

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
        |
        +--org.omg.CosTransactions._ResourceImplBase
              |
              +--org.objectweb.jotm.ControlResourceImpl
All Implemented Interfaces:
IDLEntity, InvokeHandler, Object, Resource, ResourceOperations, 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.

Specified by:
prepare in interface ResourceOperations
Specified by:
prepare in class _ResourceImplBase
Returns:
int vote commit, rollback, or readonly.
HeuristicMixed
HeuristicHazard

rollback

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

Specified by:
rollback in interface ResourceOperations
Specified by:
rollback in class _ResourceImplBase
HeuristicMixed
HeuristicHazard
HeuristicCommit

commit

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

Specified by:
commit in interface ResourceOperations
Specified by:
commit in class _ResourceImplBase
NotPrepared
HeuristicRollback
HeuristicMixed
HeuristicHazard

commit_one_phase

public void commit_one_phase()
                      throws HeuristicHazard
commit 1 phase.

Specified by:
commit_one_phase in interface ResourceOperations
Specified by:
commit_one_phase in class _ResourceImplBase
HeuristicHazard

forget

public void forget()
forget heuristics about this transaction.

Specified by:
forget in interface ResourceOperations
Specified by:
forget in class _ResourceImplBase