public class AssumedCompleteTransaction extends RecoveredTransaction
Several of the methods of OTS_Transaction could be simplified for an AssumedCompleteTransaction (e.g. the status must be committed), but they are kept the same to simplify maintenance
_originalProcessUid
controlHandle, parentTransaction
failedList, heuristicList, pendingList, preparedList, readonlyList, savedIntentionList
modifyingActions, objectModel, objectUid, usingActions
Constructor and Description |
---|
AssumedCompleteTransaction(Uid actionUid) |
Modifier and Type | Method and Description |
---|---|
boolean |
assumeComplete()
This T is already assumed complete, so return false
|
Date |
getLastActiveTime()
do not admit to being inactive
|
Status |
getOriginalStatus()
the original process must be deceased if we are assumed complete
|
boolean |
restore_state(InputObjectState objectState,
int ot)
This assumes the various lists are zero length when it is called.
|
boolean |
save_state(OutputObjectState os,
int ot)
Redefined version of save_state and restore_state from StateManager.
|
String |
toString()
Overloads Object.toString()
|
String |
type()
Overloads BasicAction.type()
|
static String |
typeName()
typeName differs from original to force the ActionStore to
keep AssumedCompleteTransactions separate
|
addResourceRecord, allCompleted, get_status, getRecoveryStatus, packHeader, removeOldStoreEntry, replayPhase2, unpackHeader
commit, create_subtransaction, createOTSRecord, createOTSRecord, destroyAction, doAfterCompletion, doBeforeCompletion, equals, finalize, forgetHeuristics, get_parent_status, get_top_level_status, get_transaction_name, get_txcontext, getControlHandle, getSynchronizations, hash_top_level_tran, hash_transaction, interpositionType, is_ancestor_transaction, is_descendant_transaction, is_related_transaction, is_same_transaction, is_top_level_transaction, register_resource, register_subtran_aware, register_synchronization, rollback_only, rollback, setControlHandle, topLevelUid, uid
addSynchronization, afterCompletion, afterCompletion, asyncAfterCompletion, beforeCompletion, cancel, end, getDeferredThrowable, running, start, start
Abort, 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, finalizeInternal, getDeferredThrowables, getHeuristicDecision, getHierarchy, getSavingUid, getStore, hashCode, hierarchyDepth, insertRecord, isAncestor, maintainHeuristics, onePhaseCommit, parent, phase2Abort, phase2Cleanup, phase2Commit, prepare, preparedStatus, preventCommit, removeChildAction, removeChildThread, removeChildThread, setCheckedAction, setHeuristicDecision, status, topLevelAction, topLevelActionUid, typeOfAction, updateHeuristic, updateState
cleanup, createLists, deactivate, deactivate, disable, forgetAction, get_uid, getMutex, getObjectModel, getStoreRoot, loadObjectState, lockMutex, modified, objectType, persist, print, rememberAction, setStatus, setupStore, setupStore, setupStore, terminate, tryLockMutex, unlockMutex
get_uid, preventCommit
public AssumedCompleteTransaction(Uid actionUid)
public Status getOriginalStatus()
getOriginalStatus
in class RecoveredTransaction
public String type()
TwoPhaseCoordinator
type
in class RecoveredTransaction
public static String typeName()
public String toString()
BasicAction
toString
in class ArjunaTransactionImple
public boolean assumeComplete()
assumeComplete
in class RecoveredTransaction
public Date getLastActiveTime()
RecoveredTransaction
getLastActiveTime
in class RecoveredTransaction
public boolean restore_state(InputObjectState objectState, int ot)
BasicAction
restore_state
in class BasicAction
true
if successful, false
otherwise.public boolean save_state(OutputObjectState os, int ot)
BasicAction
save_state
in class RecoveredTransaction
true
if successful, false
otherwise.Copyright © 2021 JBoss by Red Hat. All rights reserved.