public class OTSResourceImpl extends OTSResourcePOA implements OTSResource
| Constructor and Description |
|---|
OTSResourceImpl(Xid xid,
XAResource xaRes,
TransactionState tranState)
Construct an XAResource object.
|
| 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()
Ensure that the Native XA interface is initialized.
|
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) |
void |
commit_one_phase()
Commit a transaction, using one-phase optimization.
|
void |
commit()
Commit a transaction.
|
void |
forget()
The resource manager can forget all knowledge of the transaction.
|
OTSResource |
getCORBAObjReference()
Returns the CORBA Object which represents this object.
|
org.omg.CosTransactions.otid_t |
getGlobalTID()
Return the global transaction identifier.
|
org.omg.CosTransactions.Vote |
prepare()
Prepare a transaction.
|
void |
rollback()
Rollback a transaction.
|
String |
toString() |
_all_interfaces, _invoke, _this, _this_default_POA, _get_delegate, _object_id, _orb, _poa, _set_delegate, _this_object, _this_objectpublic OTSResourceImpl(Xid xid, XAResource xaRes, TransactionState tranState)
xid - the global transaction identifierxaRes - the XAServer object associated with the resource managerpublic void commit()
throws org.omg.CosTransactions.NotPrepared,
org.omg.CosTransactions.HeuristicRollback,
org.omg.CosTransactions.HeuristicHazard,
org.omg.CosTransactions.HeuristicMixed,
SystemException
commit in interface org.omg.CosTransactions.ResourceOperationsorg.omg.CosTransactions.NotPrepared - the resource manager has not been called
for prepare.org.omg.CosTransactions.HeuristicRollback - a heuristic decision has been made,
and the resource rolledback.org.omg.CosTransactions.HeuristicHazard - a heuristic decision has been made,
but the disposition of
the resource is unknown.org.omg.CosTransactions.HeuristicMixed - a heuristic decision has been made, some
updates have been commited
and others rolled back.SystemException - an unindentified error has been reported
by the resource manager.public void commit_one_phase()
throws org.omg.CosTransactions.HeuristicHazard,
SystemException
commit_one_phase in interface org.omg.CosTransactions.ResourceOperationsorg.omg.CosTransactions.HeuristicHazard - a heuristic decision has been made,
but the disposition of
the resource is unknown.SystemException - an unindentified error has been reported
by the resource manager.public void forget()
forget in interface org.omg.CosTransactions.ResourceOperationspublic org.omg.CosTransactions.Vote prepare()
throws org.omg.CosTransactions.HeuristicHazard,
org.omg.CosTransactions.HeuristicMixed
This is the first phase of the two-phase commit protocol.
prepare in interface org.omg.CosTransactions.ResourceOperationsorg.omg.CosTransactions.HeuristicHazard - a heuristic decision has been made,
but the disposition of
the resource is unknown.org.omg.CosTransactions.HeuristicMixed - a heuristic decision has been made,
some updates have been commited
and others rolled back.public void rollback()
throws org.omg.CosTransactions.HeuristicCommit,
org.omg.CosTransactions.HeuristicMixed,
org.omg.CosTransactions.HeuristicHazard,
SystemException
rollback in interface org.omg.CosTransactions.ResourceOperationsorg.omg.CosTransactions.HeuristicCommit - a heuristic decision has been made,
and the resource committed.org.omg.CosTransactions.HeuristicHazard - a heuristic decision has been made,
but the disposition of
the resource is unknown.org.omg.CosTransactions.HeuristicMixed - a heuristic decision has been made,
some updates have been commited
and others rolled back.SystemException - an unindentified error has been reported
by the resource managerpublic org.omg.CosTransactions.otid_t getGlobalTID()
getGlobalTID in interface OTSResourceOperationspublic OTSResource getCORBAObjReference()
public Object _duplicate()
_duplicate in interface Objectpublic boolean _is_a(String repository_id)
public boolean _is_equivalent(Object that)
_is_equivalent in interface Objectpublic boolean _non_existent()
_non_existent in interface Object_non_existent in class Servantpublic Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result)
_create_request in interface Objectpublic Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exceptions, ContextList contexts)
_create_request in interface Objectpublic Object _get_interface_def()
_get_interface_def in interface Object_get_interface_def in class Servantpublic Policy _get_policy(int policy_type)
_get_policy in interface Objectpublic DomainManager[] _get_domain_managers()
_get_domain_managers in interface Objectpublic Object _set_policy_override(Policy[] policies, SetOverrideType set_add)
_set_policy_override in interface ObjectCopyright © 2017. All rights reserved.