public class ArjunaTransactionImple extends TwoPhaseCoordinator implements ArjunaTransactionOperations
| Modifier and Type | Field and Description |
|---|---|
protected ControlImple |
controlHandle |
protected ArjunaTransactionImple |
parentTransaction |
failedList, heuristicList, pendingList, preparedList, readonlyList, savedIntentionListmodifyingActions, objectModel, objectUid, usingActions| Modifier | Constructor and Description |
|---|---|
|
ArjunaTransactionImple(Control myParent) |
|
ArjunaTransactionImple(Control myParent,
ArjunaTransactionImple parent) |
protected |
ArjunaTransactionImple(Uid actUid)
For crash recovery purposes only.
|
|
ArjunaTransactionImple(Uid actUid,
Control myParent) |
|
ArjunaTransactionImple(Uid actUid,
Control myParent,
ArjunaTransactionImple parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(boolean report_heuristics)
If the transaction has already been committed (by another thread, for
example) then we do nothing - could throw TransactionRequired or
INVALID_TRANSACTION.
|
Control |
create_subtransaction() |
protected AbstractRecord |
createOTSRecord(boolean propagate,
Resource resource,
Coordinator coord) |
protected AbstractRecord |
createOTSRecord(boolean propagate,
Resource resource,
Coordinator coord,
Uid recCoordUid) |
protected void |
destroyAction() |
protected void |
doAfterCompletion(Status myStatus) |
protected void |
doBeforeCompletion() |
boolean |
equals(Object o) |
void |
finalize() |
boolean |
forgetHeuristics()
Forget any heuristics we may have received, and tell the resources which
generated them to forget too.
|
Status |
get_parent_status() |
Status |
get_status() |
Status |
get_top_level_status() |
String |
get_transaction_name()
To be used for debugging purposes only.
|
PropagationContext |
get_txcontext() |
ControlImple |
getControlHandle() |
Map<Uid,String> |
getSynchronizations() |
int |
hash_top_level_tran() |
int |
hash_transaction() |
static int |
interpositionType() |
boolean |
is_ancestor_transaction(Coordinator tc)
Is this transaction an ancestor of tc?
|
boolean |
is_descendant_transaction(Coordinator tc)
Is this transaction a descendant of tc?
|
boolean |
is_related_transaction(Coordinator tc) |
boolean |
is_same_transaction(Coordinator tc) |
boolean |
is_top_level_transaction() |
RecoveryCoordinator |
register_resource(Resource r)
Resources are only registered with the current transaction, whereas
subtransaction aware resources are registered with their parents when the
current transaction ends.
|
void |
register_subtran_aware(SubtransactionAwareResource r)
Do not propagate the resource to the parent.
|
void |
register_synchronization(Synchronization sync)
The spec states that a synchronization is registered with a single
top-level action only.
|
void |
rollback_only() |
void |
rollback() |
void |
setControlHandle(ControlImple handle) |
String |
topLevelUid() |
String |
toString()
Overloads Object.toString()
|
String |
type()
Overloads BasicAction.type()
|
static String |
typeName() |
String |
uid()
We use these to determine relationships between transactions.
|
addSynchronization, afterCompletion, afterCompletion, asyncAfterCompletion, beforeCompletion, cancel, end, getDeferredThrowable, running, start, startAbort, abortStatus, activate, activate, activeThreads, add, addChildAction, addChildThread, addChildThread, addRecord, async_prepare, Begin, checkForCurrent, childTransactions, commitStatus, criticalEnd, criticalStart, Current, deactivate, destroy, doAbort, doAbort, doCommit, doCommit, doPrepare, End, finalizeInternal, getHeuristicDecision, getHierarchy, getSavingUid, getStore, hashCode, hierarchyDepth, insertRecord, isAncestor, maintainHeuristics, onePhaseCommit, parent, phase2Abort, phase2Cleanup, phase2Commit, prepare, preparedStatus, preventCommit, removeChildAction, removeChildThread, removeChildThread, restore_state, save_state, setCheckedAction, setHeuristicDecision, status, topLevelAction, topLevelActionUid, typeOfAction, updateHeuristic, updateStatecleanup, createLists, deactivate, deactivate, disable, forgetAction, get_uid, getMutex, getObjectModel, getStoreRoot, loadObjectState, lockMutex, modified, objectType, packHeader, persist, print, rememberAction, setStatus, setupStore, setupStore, setupStore, terminate, tryLockMutex, unlockMutex, unpackHeaderget_uid, preventCommitprotected ArjunaTransactionImple parentTransaction
protected ControlImple controlHandle
public ArjunaTransactionImple(Control myParent)
public ArjunaTransactionImple(Control myParent, ArjunaTransactionImple parent)
public ArjunaTransactionImple(Uid actUid, Control myParent, ArjunaTransactionImple parent)
protected ArjunaTransactionImple(Uid actUid)
public final ControlImple getControlHandle()
public final void setControlHandle(ControlImple handle)
public void commit(boolean report_heuristics)
throws HeuristicMixed,
HeuristicHazard,
SystemException
commit in interface TerminatorOperationsHeuristicMixedHeuristicHazardSystemExceptionpublic void rollback()
throws SystemException
rollback in interface TerminatorOperationsSystemExceptionpublic Status get_status() throws SystemException
get_status in interface CoordinatorOperationsSystemExceptionpublic Status get_parent_status() throws SystemException
get_parent_status in interface CoordinatorOperationsSystemExceptionpublic Status get_top_level_status() throws SystemException
get_top_level_status in interface CoordinatorOperationsSystemExceptionpublic boolean is_same_transaction(Coordinator tc) throws SystemException
is_same_transaction in interface CoordinatorOperationsSystemExceptionpublic boolean is_related_transaction(Coordinator tc) throws SystemException
is_related_transaction in interface CoordinatorOperationsSystemExceptionpublic boolean is_ancestor_transaction(Coordinator tc) throws SystemException
is_ancestor_transaction in interface CoordinatorOperationsSystemExceptionpublic boolean is_descendant_transaction(Coordinator tc) throws SystemException
is_descendant_transaction in interface CoordinatorOperationsSystemExceptionpublic boolean is_top_level_transaction()
throws SystemException
is_top_level_transaction in interface CoordinatorOperationsSystemExceptionpublic int hash_transaction()
throws SystemException
hash_transaction in interface CoordinatorOperationsSystemExceptionpublic int hash_top_level_tran()
throws SystemException
hash_top_level_tran in interface CoordinatorOperationsSystemExceptionpublic RecoveryCoordinator register_resource(Resource r) throws SystemException, Inactive
register_resource in interface CoordinatorOperationsSystemExceptionInactivepublic void register_subtran_aware(SubtransactionAwareResource r) throws Inactive, NotSubtransaction, SystemException
register_subtran_aware in interface CoordinatorOperationsInactiveNotSubtransactionSystemExceptionpublic void rollback_only()
throws SystemException,
Inactive
rollback_only in interface CoordinatorOperationsSystemExceptionInactivepublic String get_transaction_name() throws SystemException
get_transaction_name in interface CoordinatorOperationsSystemExceptionpublic Control create_subtransaction() throws SystemException, SubtransactionsUnavailable, Inactive
create_subtransaction in interface CoordinatorOperationsSystemExceptionSubtransactionsUnavailableInactivepublic void register_synchronization(Synchronization sync) throws Inactive, SynchronizationUnavailable, SystemException
register_synchronization in interface CoordinatorOperationsInactiveSynchronizationUnavailableSystemExceptionpublic PropagationContext get_txcontext() throws Unavailable, SystemException
get_txcontext in interface CoordinatorOperationsUnavailableSystemExceptionpublic String uid() throws SystemException
uid in interface UidCoordinatorOperationsSystemExceptionpublic String topLevelUid() throws SystemException
topLevelUid in interface UidCoordinatorOperationsSystemExceptionpublic String type()
TwoPhaseCoordinatortype in class TwoPhaseCoordinatorpublic static final int interpositionType()
public static String typeName()
public String toString()
BasicActiontoString in class BasicActionpublic boolean equals(Object o)
equals in class BasicActionpublic boolean forgetHeuristics()
BasicActionforgetHeuristics in class BasicActiontrue if heuristic information (if any) was
successfully forgotten, false otherwise.protected void doBeforeCompletion()
throws SystemException
SystemExceptionprotected void doAfterCompletion(Status myStatus) throws SystemException
SystemExceptionprotected final AbstractRecord createOTSRecord(boolean propagate, Resource resource, Coordinator coord)
protected final AbstractRecord createOTSRecord(boolean propagate, Resource resource, Coordinator coord, Uid recCoordUid)
protected final void destroyAction()
public Map<Uid,String> getSynchronizations()
getSynchronizations in class TwoPhaseCoordinatorCopyright © 2016 JBoss by Red Hat. All rights reserved.