public class TwoPhaseCoordinator extends BasicAction implements Reapable
failedList, heuristicList, pendingList, preparedList, readonlyList, savedIntentionList, subordinate, threadStackTraceHistoryListmodifyingActions, objectModel, objectUid, usingActions| Modifier | Constructor and Description |
|---|---|
|
TwoPhaseCoordinator() |
protected |
TwoPhaseCoordinator(int at) |
|
TwoPhaseCoordinator(Uid id) |
protected |
TwoPhaseCoordinator(Uid u,
int at) |
| Modifier and Type | Method and Description |
|---|---|
int |
addSynchronization(SynchronizationRecord sr) |
protected boolean |
afterCompletion(int myStatus)
Drive afterCompletion participants.
|
protected boolean |
afterCompletion(int myStatus,
boolean report_heuristics)
Drive afterCompletion participants.
|
protected boolean |
asyncAfterCompletion(int myStatus,
boolean report_heuristics) |
protected boolean |
beforeCompletion()
Drive beforeCompletion participants.
|
int |
cancel()
If this method is called and a transaction is not in a status of RUNNING,
ABORT_ONLY or COMMITTING then do not call afterCompletion.
|
int |
end(boolean report_heuristics) |
Throwable |
getDeferredThrowable()
Get any Throwable that was caught during commit processing but not directly rethrown.
|
Map<Uid,String> |
getSynchronizations() |
void |
outputCapturedStackTraces() |
void |
recordStackTraces() |
boolean |
running() |
int |
start() |
int |
start(BasicAction parentAction) |
String |
type()
Overloads BasicAction.type()
|
Abort, Abort, abortStatus, activate, activate, activeThreads, add, addChildAction, addChildThread, addChildThread, addRecord, async_prepare, Begin, checkForCurrent, childTransactions, commitStatus, createStackTraces, criticalEnd, criticalStart, Current, deactivate, destroy, doAbort, doAbort, doCommit, doCommit, doPrepare, End, equals, finalizeInternal, forgetHeuristics, getDeferredThrowables, getHeuristicDecision, getHierarchy, getSavingUid, getStore, hashCode, hierarchyDepth, insertRecord, isAncestor, maintainHeuristics, onePhaseCommit, onePhaseCommit, parent, phase2Abort, phase2Cleanup, phase2Commit, prepare, preparedStatus, preventCommit, removeChildAction, removeChildThread, removeChildThread, restore_state, save_state, setCheckedAction, setHeuristicDecision, status, topLevelAction, topLevelActionUid, toString, 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, unpackHeaderclone, finalize, getClass, notify, notifyAll, wait, wait, waitget_uid, preventCommitpublic TwoPhaseCoordinator()
public TwoPhaseCoordinator(Uid id)
protected TwoPhaseCoordinator(int at)
protected TwoPhaseCoordinator(Uid u, int at)
public int start()
public int start(BasicAction parentAction)
public int end(boolean report_heuristics)
public int cancel()
public int addSynchronization(SynchronizationRecord sr)
public boolean running()
public String type()
type in class BasicActionpublic Throwable getDeferredThrowable()
protected boolean beforeCompletion()
protected boolean asyncAfterCompletion(int myStatus,
boolean report_heuristics)
protected boolean afterCompletion(int myStatus)
myStatus - the outcome of the transaction (ActionStatus.COMMITTED or ActionStatus.ABORTED).protected boolean afterCompletion(int myStatus,
boolean report_heuristics)
myStatus - the outcome of the transaction (ActionStatus.COMMITTED or ActionStatus.ABORTED).report_heuristics - does the caller want to be informed about heurisitics at the point of invocation?public void recordStackTraces()
recordStackTraces in interface ReapablerecordStackTraces in class BasicActionpublic void outputCapturedStackTraces()
outputCapturedStackTraces in interface ReapableoutputCapturedStackTraces in class BasicActionCopyright © 2021 JBoss by Red Hat. All rights reserved.