|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.omg.CORBA.LocalObject
tyrex.corba.Current
This is the current interface implementation. This code is extracted from the OpenORB OTS source code.
| Constructor Summary | |
Current(org.omg.CosTransactions.TransactionFactory factory,
org.omg.PortableInterceptor.ORBInitInfo info,
int t_slot)
Constructor |
|
| Method Summary | |
void |
begin()
A new transaction is created. |
void |
commit(boolean report_heuristics)
If there is no transaction associated with the client thread, the NoTransaction exception is raised. |
org.omg.CosTransactions.TransactionFactory |
factory()
Returns the transaction factory |
void |
fatal(java.lang.String from,
java.lang.String msg)
Displays a trace and throw a INTERNAL exception... |
org.omg.CosTransactions.Control |
get_control()
If the client thread is not associated with a transaction, a null object reference is returned. |
java.lang.String |
get_coordinator_ior()
This operation is used to return the Coordinator ior |
org.omg.CosTransactions.Status |
get_status()
If there is no transaction associated with the client thread, the StatusNoTransaction value is returned. |
java.lang.String |
get_transaction_name()
If there is no transaction associated with the client thread, an empty string is returned. |
org.omg.CosTransactions.PropagationContext |
getPropagationContext()
This operation is used to return the propagation context |
void |
pop_txcontext()
This operation restores a previously saved propagation context. |
void |
print(java.lang.String from,
java.lang.String msg)
Displays a trace |
void |
push_txcontext(org.omg.CosTransactions.PropagationContext pctx)
This operation is used to push a propagation context in a stack. |
void |
resume(org.omg.CosTransactions.Control which)
If the parameter is a null object reference, the client thread becomes associated with no transaction. |
void |
rollback_only()
If there is no transaction associated with the client thread, the NoTransaction exception is raised. |
void |
rollback()
If there is no transaction associated with the client thread, the NoTransaction exception is raised. |
void |
set_timeout(int seconds)
This operation modifies a state variable associated with the target object that affects the time-out period associated with top-level transactions created by subsequent invocations of the begin operation. |
org.omg.CosTransactions.Control |
suspend()
If the client thread is not associated with a transaction, a null object reference is returned. |
| Methods inherited from class org.omg.CORBA.LocalObject |
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 |
public Current(org.omg.CosTransactions.TransactionFactory factory,
org.omg.PortableInterceptor.ORBInitInfo info,
int t_slot)
| Method Detail |
public void begin()
throws org.omg.CosTransactions.SubtransactionsUnavailable
begin in interface org.omg.CosTransactions.CurrentOperationsSubtransactionsUnavailable - The SubtransactionsUnavailable exception is raised
if the client thread already has an associated transaction and the Transaction
Service implementation does not support nested transactions.
public void commit(boolean report_heuristics)
throws org.omg.CosTransactions.NoTransaction,
org.omg.CosTransactions.HeuristicMixed,
org.omg.CosTransactions.HeuristicHazard
commit in interface org.omg.CosTransactions.CurrentOperationsorg.omg.CosTransactions.NoTransaction
org.omg.CosTransactions.HeuristicMixed
org.omg.CosTransactions.HeuristicHazard
public void rollback()
throws org.omg.CosTransactions.NoTransaction
rollback in interface org.omg.CosTransactions.CurrentOperationsorg.omg.CosTransactions.NoTransaction
public void rollback_only()
throws org.omg.CosTransactions.NoTransaction
rollback_only in interface org.omg.CosTransactions.CurrentOperationsorg.omg.CosTransactions.NoTransactionpublic org.omg.CosTransactions.Status get_status()
get_status in interface org.omg.CosTransactions.CurrentOperationspublic java.lang.String get_transaction_name()
get_transaction_name in interface org.omg.CosTransactions.CurrentOperationspublic void set_timeout(int seconds)
set_timeout in interface org.omg.CosTransactions.CurrentOperationspublic org.omg.CosTransactions.Control get_control()
get_control in interface org.omg.CosTransactions.CurrentOperationspublic org.omg.CosTransactions.Control suspend()
suspend in interface org.omg.CosTransactions.CurrentOperations
public void resume(org.omg.CosTransactions.Control which)
throws org.omg.CosTransactions.InvalidControl
resume in interface org.omg.CosTransactions.CurrentOperationsorg.omg.CosTransactions.InvalidControl
public java.lang.String get_coordinator_ior()
throws org.omg.CORBA.MARSHAL
org.omg.CORBA.MARSHAL
public org.omg.CosTransactions.PropagationContext getPropagationContext()
throws org.omg.CORBA.MARSHAL
org.omg.CORBA.MARSHALpublic void push_txcontext(org.omg.CosTransactions.PropagationContext pctx)
public void pop_txcontext()
public void print(java.lang.String from,
java.lang.String msg)
public void fatal(java.lang.String from,
java.lang.String msg)
public org.omg.CosTransactions.TransactionFactory factory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||