org.omg.CosTransactions
Class _ResourceStub

java.lang.Object
  extended by org.omg.CORBA.portable.ObjectImpl
      extended by org.omg.CosTransactions._ResourceStub
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, Resource, ResourceOperations

public class _ResourceStub
extends org.omg.CORBA.portable.ObjectImpl
implements Resource

The Transaction Service uses a two-phase commitment protocol to complete a top-level transaction with each registered resource. The Resource interface defines the operations invoked by the transaction service on each resource. Each object supporting the Resource interface is implicitly associated with a single top-level transaction. Note that in the case of failure, the completion sequence will continue after the failure is repaired. A resource should be prepared to receive duplicate requests for the commit or rollback operation and to respond consistently.

See Also:
Serialized Form

Constructor Summary
_ResourceStub()
           
 
Method Summary
 java.lang.String[] _ids()
           
 void commit_one_phase()
          Operation commit_one_phase
 void commit()
          Operation commit
 void forget()
          Operation forget
 Vote prepare()
          Operation prepare
 void rollback()
          Operation rollback
 
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
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
 

Constructor Detail

_ResourceStub

public _ResourceStub()
Method Detail

_ids

public java.lang.String[] _ids()
Specified by:
_ids in class org.omg.CORBA.portable.ObjectImpl

prepare

public Vote prepare()
             throws HeuristicMixed,
                    HeuristicHazard
Operation prepare

Specified by:
prepare in interface ResourceOperations
Throws:
HeuristicMixed
HeuristicHazard

rollback

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

Specified by:
rollback in interface ResourceOperations
Throws:
HeuristicCommit
HeuristicMixed
HeuristicHazard

commit

public void commit()
            throws NotPrepared,
                   HeuristicRollback,
                   HeuristicMixed,
                   HeuristicHazard
Operation commit

Specified by:
commit in interface ResourceOperations
Throws:
NotPrepared
HeuristicRollback
HeuristicMixed
HeuristicHazard

commit_one_phase

public void commit_one_phase()
                      throws HeuristicHazard
Operation commit_one_phase

Specified by:
commit_one_phase in interface ResourceOperations
Throws:
HeuristicHazard

forget

public void forget()
Operation forget

Specified by:
forget in interface ResourceOperations