|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.PortableServer.Servant
org.omg.CosTransactions.CoordinatorPOA
org.openorb.ots.Impl.Coordinator
org.openorb.ots.Impl.SubTransCoordinator
public class SubTransCoordinator
This class is a coordinator implementation for an sub transaction.
Constructor Summary | |
---|---|
SubTransCoordinator(Manager manager,
int time_out,
XID xid,
TransIdentity[] parents,
org.omg.PortableServer.POA poa,
org.apache.avalon.framework.logger.Logger logger)
Constructor |
Method Summary | |
---|---|
Control |
create_subtransaction()
A new subtransaction is created whose parent is the transaction associated with the target object. |
Status |
get_parent_status()
If the transaction associated with the target object is a top-level transaction, then this operation is equivalent to the get_status operation. |
Status |
get_top_level_status()
This operation returns the status of the top-level ancestor of the transaction associated with the target object. |
java.lang.String |
get_transaction_name()
This operation returns a printable string describing the transaction associated with the target object. |
TransIdentity[] |
getParents()
|
int |
hash_top_level_tran()
This operation returns the hash code for the top-level ancestor of the transaction associated with the target object. |
boolean |
is_ancestor_transaction(Coordinator tc)
This operation returns true if, and only if, the transaction associated with the target object is an ancestor of the transaction associated with the parameter object. |
boolean |
is_related_transaction(Coordinator tc)
This operation returns true if, and only if, the transaction associated with the target object is related to the transaction associated with the parameter object. |
boolean |
is_top_level_transaction()
This operation returns true if, and only if, the transaction associated with the target object is a top-level transaction. |
RecoveryCoordinator |
register_resource(Resource r)
This operation registers the specified resource as a participant in the transaction associated with the target object. |
void |
register_subtran_aware(SubtransactionAwareResource r)
This operation registers the specified subtransaction aware resource such that it will be notified when the subtransaction has committed or rolled back. |
SubtransactionAwareResource[] |
subtran_resources()
This operation returns all registered resources. |
Methods inherited from class org.openorb.ots.Impl.Coordinator |
---|
commit_sub_transactions, desynchronize, get_status, get_txcontext, getXID, hash_transaction, is_descendant_transaction, is_same_transaction, register_synchronization, remove_subtran_listener, removeItself, resources, rollback_only, rollback_sub_transactions, setStatus, setTerminator, synchronize, updatePropagationContext |
Methods inherited from class org.omg.CosTransactions.CoordinatorPOA |
---|
_all_interfaces, _invoke, _this, _this |
Methods inherited from class org.omg.PortableServer.Servant |
---|
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubTransCoordinator(Manager manager, int time_out, XID xid, TransIdentity[] parents, org.omg.PortableServer.POA poa, org.apache.avalon.framework.logger.Logger logger)
Method Detail |
---|
public TransIdentity[] getParents()
public Status get_parent_status()
get_parent_status
in interface CoordinatorOperations
get_parent_status
in class Coordinator
public Status get_top_level_status()
get_top_level_status
in interface CoordinatorOperations
get_top_level_status
in class Coordinator
public boolean is_related_transaction(Coordinator tc)
is_related_transaction
in interface CoordinatorOperations
is_related_transaction
in class Coordinator
public boolean is_ancestor_transaction(Coordinator tc)
is_ancestor_transaction
in interface CoordinatorOperations
is_ancestor_transaction
in class Coordinator
public boolean is_top_level_transaction()
is_top_level_transaction
in interface CoordinatorOperations
is_top_level_transaction
in class Coordinator
public int hash_top_level_tran()
hash_top_level_tran
in interface CoordinatorOperations
hash_top_level_tran
in class Coordinator
public java.lang.String get_transaction_name()
get_transaction_name
in interface CoordinatorOperations
get_transaction_name
in class Coordinator
public RecoveryCoordinator register_resource(Resource r) throws Inactive
register_resource
in interface CoordinatorOperations
register_resource
in class Coordinator
Inactive
public void register_subtran_aware(SubtransactionAwareResource r) throws Inactive, NotSubtransaction
register_subtran_aware
in interface CoordinatorOperations
register_subtran_aware
in class Coordinator
Inactive
NotSubtransaction
public Control create_subtransaction() throws SubtransactionsUnavailable, Inactive
create_subtransaction
in interface CoordinatorOperations
create_subtransaction
in class Coordinator
SubtransactionsUnavailable
Inactive
public SubtransactionAwareResource[] subtran_resources()
subtran_resources
in class Coordinator
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |