public class TwoPhaseCoordinator extends BasicAction implements Reapable
failedList, heuristicList, pendingList, preparedList, readonlyList, savedIntentionList
modifyingActions, 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 |
beforeCompletion()
Drive beforeCompletion participants.
|
int |
cancel() |
int |
end(boolean report_heuristics) |
Throwable |
getDeferredThrowable()
Get any Throwable that was caught during commit processing but not directly rethrown.
|
Map<Uid,String> |
getSynchronizations() |
boolean |
running() |
int |
start() |
int |
start(BasicAction parentAction) |
String |
type()
Overloads BasicAction.type()
|
Abort, 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, equals, finalizeInternal, forgetHeuristics, 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, toString, typeOfAction, updateHeuristic, updateState
cleanup, 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, unpackHeader
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
get_uid, preventCommit
public 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 addSynchronization(SynchronizationRecord sr)
public boolean running()
public String type()
type
in class BasicAction
public Throwable getDeferredThrowable()
protected boolean beforeCompletion()
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?Copyright © 2013. All Rights Reserved.