public class TopCoordinator extends JCoordinatorPOA
Modifier and Type | Method and Description |
---|---|
Request |
_create_request(Context ctx,
String operation,
NVList arg_list,
NamedValue result) |
Request |
_create_request(Context ctx,
String operation,
NVList arg_list,
NamedValue result,
ExceptionList exceptions,
ContextList contexts) |
Object |
_duplicate() |
DomainManager[] |
_get_domain_managers() |
Object |
_get_interface_def() |
Policy |
_get_policy(int policy_type) |
int |
_hash(int maximum) |
boolean |
_is_a(String repository_id) |
boolean |
_is_equivalent(Object that) |
boolean |
_non_existent() |
void |
_release() |
Request |
_request(String operation) |
Object |
_set_policy_override(Policy[] policies,
SetOverrideType set_add) |
org.omg.CosTransactions.Control |
create_subtransaction()
Creates a subtransaction and returns a Control object that represents
the child transaction.
|
void |
doFinalize()
Cleans up the objects state.
|
boolean |
equals(Object other)
Determines equality of the object with the parameter.
|
org.omg.CosTransactions.Status |
get_parent_status()
Gets the local state of the transaction.
|
org.omg.CosTransactions.Status |
get_status()
Returns the local status of the target transaction.
|
org.omg.CosTransactions.Status |
get_top_level_status()
Gets the local state of the transaction.
|
String |
get_transaction_name()
Returns a printable string that represents the TopCoordinator.
|
org.omg.CosTransactions.PropagationContext |
get_txcontext()
Creates a PropagationContext which contains the information which would
normally be passed implicitly via the CosTSPropagation interfaces.
|
org.omg.CosTransactions.TransIdentity[] |
getAncestors()
Returns the sequence of ancestors of the transaction.
|
GlobalTID |
getGlobalTid() |
org.omg.CosTransactions.otid_t |
getGlobalTID()
Returns a global identifier that represents the TopCoordinator's
transaction.
|
long |
getLocalTID()
Returns the internal identifier for the transaction.
|
int |
getParticipantCount() |
int |
hash_top_level_tran()
Returns a hash value based on the top-level ancestor of the transaction
associated with the target object.
|
int |
hash_transaction()
Returns a hash value based on the transaction associated with the target
object.
|
int |
hashCode()
Returns a hash code for the object.
|
boolean |
is_ancestor_transaction(org.omg.CosTransactions.Coordinator other)
Determines whether the target TopCoordinator is an ancestor
of the given Coordinator.
|
boolean |
is_descendant_transaction(org.omg.CosTransactions.Coordinator other)
Determines whether the target TopCoordinator is a descendant
of the given Coordinator.
|
boolean |
is_related_transaction(org.omg.CosTransactions.Coordinator other)
Determines whether the target TopCoordinator is related to
the given Coordinator (i.e.
|
boolean |
is_root_transaction()
Determines whether this TopCoordinator is the root TopCoordinator.
|
boolean |
is_same_transaction(org.omg.CosTransactions.Coordinator other)
Compares the given Coordinator object with the target,
and returns TRUE if they represent the same transaction.
|
boolean |
is_top_level_transaction()
Determines whether the target TopCoordinator represents a top-level
(non-nested) transaction.
|
boolean |
isRollbackOnly()
Checks whether the TopCoordinator is marked rollback-only.
|
org.omg.CosTransactions.RecoveryCoordinator |
register_resource(org.omg.CosTransactions.Resource res)
Enables a Resource to be registered as a participant in the completion
of the top-level transaction represented by the TopCoordinator.
|
void |
register_subtran_aware(org.omg.CosTransactions.SubtransactionAwareResource sares)
Enables a SubtransactionAwareResource to be registered as a
participant in the completion of a subtransaction.
|
void |
register_synchronization(org.omg.CosTransactions.Synchronization sync)
Informs the TopCoordinator that the given object requires
synchronization before and after completion of the transaction.
|
void |
rollback_only()
Ensures that the transaction represented by the target TopCoordinator
cannot be committed.
|
_all_interfaces, _invoke, _this, _this
_default_POA, _get_delegate, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
public void doFinalize()
public org.omg.CosTransactions.Status get_status()
get_status
in interface org.omg.CosTransactions.CoordinatorOperations
public org.omg.CosTransactions.Status get_parent_status()
get_parent_status
in interface org.omg.CosTransactions.CoordinatorOperations
public org.omg.CosTransactions.Status get_top_level_status()
get_top_level_status
in interface org.omg.CosTransactions.CoordinatorOperations
public boolean is_same_transaction(org.omg.CosTransactions.Coordinator other) throws SystemException
is_same_transaction
in interface org.omg.CosTransactions.CoordinatorOperations
other
- The other Coordinator to be compared.SystemException
- The other Coordinator could not be reached.public boolean is_related_transaction(org.omg.CosTransactions.Coordinator other) throws SystemException
is_related_transaction
in interface org.omg.CosTransactions.CoordinatorOperations
other
- The other Coordinator.SystemException
- The other Coordinator could not be reached.public boolean is_root_transaction()
public boolean is_ancestor_transaction(org.omg.CosTransactions.Coordinator other) throws SystemException
is_ancestor_transaction
in interface org.omg.CosTransactions.CoordinatorOperations
other
- The other Coordinator.SystemException
- The other Coordinator could not be reached.public boolean is_descendant_transaction(org.omg.CosTransactions.Coordinator other) throws SystemException
is_descendant_transaction
in interface org.omg.CosTransactions.CoordinatorOperations
other
- The other Coordinator.SystemException
- The other Coordinator could not be reached.public boolean is_top_level_transaction()
For a top-level transaction returns TRUE.
This operation references no instance variables and so can be implemented locally in a proxy class.
is_top_level_transaction
in interface org.omg.CosTransactions.CoordinatorOperations
public int hash_transaction()
hash_transaction
in interface org.omg.CosTransactions.CoordinatorOperations
public int hash_top_level_tran()
hash_top_level_tran
in interface org.omg.CosTransactions.CoordinatorOperations
public org.omg.CosTransactions.RecoveryCoordinator register_resource(org.omg.CosTransactions.Resource res) throws org.omg.CosTransactions.Inactive, TRANSACTION_ROLLEDBACK
register_resource
in interface org.omg.CosTransactions.CoordinatorOperations
res
- The Resource to be registered.org.omg.CosTransactions.Inactive
- The Coordinator is completing the transaction and
cannot accept this registration.TRANSACTION_ROLLEDBACK
- The transaction which the Coordinator
represents has already been rolled back, or has been marked
rollback-only.public void register_subtran_aware(org.omg.CosTransactions.SubtransactionAwareResource sares) throws org.omg.CosTransactions.NotSubtransaction
register_subtran_aware
in interface org.omg.CosTransactions.CoordinatorOperations
sares
- The SubtransactionAwareResource to be registered.org.omg.CosTransactions.NotSubtransaction
- The Coordinator represents a top-level
transaction and cannot accept the registration.public void rollback_only() throws org.omg.CosTransactions.Inactive
rollback_only
in interface org.omg.CosTransactions.CoordinatorOperations
org.omg.CosTransactions.Inactive
- The Coordinator is already completing the
transaction.public String get_transaction_name()
get_transaction_name
in interface org.omg.CosTransactions.CoordinatorOperations
public org.omg.CosTransactions.Control create_subtransaction() throws org.omg.CosTransactions.Inactive
create_subtransaction
in interface org.omg.CosTransactions.CoordinatorOperations
org.omg.CosTransactions.Inactive
- The Coordinator is completing the subtransaction
and cannot create a new child.public org.omg.CosTransactions.otid_t getGlobalTID()
This operation references only the global identifier, and so can be implemented locally in a proxy class.
This method is currently not synchronized because that causes a deadlock in resync. I don't think this is a problem as the global identifier is allocated in the constructor and then never changes.
getGlobalTID
in interface JCoordinatorOperations
public GlobalTID getGlobalTid()
public int getParticipantCount()
public long getLocalTID()
getLocalTID
in interface JCoordinatorOperations
public boolean isRollbackOnly()
isRollbackOnly
in interface JCoordinatorOperations
public org.omg.CosTransactions.TransIdentity[] getAncestors()
getAncestors
in interface JCoordinatorOperations
public void register_synchronization(org.omg.CosTransactions.Synchronization sync) throws SystemException, org.omg.CosTransactions.Inactive, org.omg.CosTransactions.SynchronizationUnavailable
register_synchronization
in interface org.omg.CosTransactions.CoordinatorOperations
sync
- The Synchronization object to be registered.org.omg.CosTransactions.Inactive
- The Coordinator is in the process of completing the
transaction and cannot accept this registration.org.omg.CosTransactions.SynchronizationUnavailable
- The transaction service
cannot support synchronization.SystemException
- The operation failed.public org.omg.CosTransactions.PropagationContext get_txcontext() throws org.omg.CosTransactions.Unavailable
get_txcontext
in interface org.omg.CosTransactions.CoordinatorOperations
org.omg.CosTransactions.Unavailable
- The Coordinator is in the process of completing the
transaction and cannot return the information.public int hashCode()
This very basic method is used by the trace facility and should not call any method which is traced.
public boolean equals(Object other)
public Object _duplicate()
_duplicate
in interface Object
public boolean _is_a(String repository_id)
public boolean _is_equivalent(Object that)
_is_equivalent
in interface Object
public boolean _non_existent()
_non_existent
in interface Object
_non_existent
in class Servant
public Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result)
_create_request
in interface Object
public Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exceptions, ContextList contexts)
_create_request
in interface Object
public Object _get_interface_def()
_get_interface_def
in interface Object
_get_interface_def
in class Servant
public Policy _get_policy(int policy_type)
_get_policy
in interface Object
public DomainManager[] _get_domain_managers()
_get_domain_managers
in interface Object
public Object _set_policy_override(Policy[] policies, SetOverrideType set_add)
_set_policy_override
in interface Object
Copyright © 2021. All rights reserved.