public class Transaction extends AtomicAction
Modifier and Type | Field and Description |
---|---|
protected static org.jboss.logging.Logger |
log |
NO_TIMEOUT
failedList, heuristicList, pendingList, preparedList, readonlyList, savedIntentionList
modifyingActions, objectModel, objectUid, usingActions
Constructor and Description |
---|
Transaction() |
Transaction(Coordinator coordinator,
String initiator) |
Transaction(Uid uid) |
Modifier and Type | Method and Description |
---|---|
void |
addVolatileParticipant(String vparticipantURI) |
protected boolean |
afterCompletion(int arjunaStatus)
Drive afterCompletion participants.
|
protected boolean |
afterCompletion(int arjunaStatus,
boolean report_heuristics)
Drive afterCompletion participants.
|
protected boolean |
beforeCompletion()
Drive beforeCompletion participants.
|
String |
enlistParticipant(String coordinatorUrl,
String participantUrl,
String recoveryUrlBase,
String terminateUrl) |
String |
enlistParticipant(String coordinatorUrl,
String participantUrl,
String recoveryUrlBase,
String commitURI,
String prepareURI,
String rollbackURI,
String commitOnePhaseURI) |
boolean |
forgetParticipant(String participantUrl) |
String |
getAge() |
String |
getInitiator() |
void |
getParticipants(Collection<String> enlistmentIds) |
String |
getRecoveryUrl() |
String |
getStatus() |
String |
getStatus(int status) |
boolean |
getStatus(org.jboss.jbossts.star.util.media.txstatusext.TwoPhaseAwareParticipantElement participantElement,
String participantUrl) |
org.jboss.jbossts.star.util.TxStatus |
getTxStatus() |
boolean |
isAlive() |
boolean |
isEnlisted(String participantUrl)
Determine whether a participant is enlisted in this transaction and the commitment
is not running.
|
boolean |
isFinishing() |
boolean |
isRunning() |
protected int |
lookupStatus() |
void |
setFault(String fault) |
org.jboss.jbossts.star.util.media.txstatusext.CoordinatorElement |
toXML() |
abort, addThread, addThread, begin, begin, cancel, checkForCurrent, commit, commit, end, getTimeout, removeThread, removeThread, resume, suspend, type
addSynchronization, asyncAfterCompletion, getDeferredThrowable, getSynchronizations, running, start, start
Abort, abortStatus, activate, activate, activeThreads, add, addChildAction, addChildThread, addChildThread, addRecord, async_prepare, Begin, childTransactions, commitStatus, 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, 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 Transaction()
public Transaction(Coordinator coordinator, String initiator)
public Transaction(Uid uid)
public org.jboss.jbossts.star.util.media.txstatusext.CoordinatorElement toXML()
public String getInitiator()
public String getAge()
public String getStatus()
protected int lookupStatus()
public String getStatus(int status)
public org.jboss.jbossts.star.util.TxStatus getTxStatus()
public String getRecoveryUrl()
public String enlistParticipant(String coordinatorUrl, String participantUrl, String recoveryUrlBase, String terminateUrl)
public String enlistParticipant(String coordinatorUrl, String participantUrl, String recoveryUrlBase, String commitURI, String prepareURI, String rollbackURI, String commitOnePhaseURI)
public boolean isEnlisted(String participantUrl)
participantUrl
- the participant url to search forpublic boolean forgetParticipant(String participantUrl)
public void getParticipants(Collection<String> enlistmentIds)
public void setFault(String fault)
public boolean isFinishing()
public boolean isAlive()
public boolean isRunning()
public boolean getStatus(org.jboss.jbossts.star.util.media.txstatusext.TwoPhaseAwareParticipantElement participantElement, String participantUrl)
public void addVolatileParticipant(String vparticipantURI)
protected boolean beforeCompletion()
TwoPhaseCoordinator
beforeCompletion
in class TwoPhaseCoordinator
protected boolean afterCompletion(int arjunaStatus)
TwoPhaseCoordinator
afterCompletion
in class TwoPhaseCoordinator
arjunaStatus
- the outcome of the transaction (ActionStatus.COMMITTED or ActionStatus.ABORTED).protected boolean afterCompletion(int arjunaStatus, boolean report_heuristics)
TwoPhaseCoordinator
afterCompletion
in class TwoPhaseCoordinator
arjunaStatus
- 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 © 2015 JBoss by Red Hat. All Rights Reserved.