public class Transaction
extends com.arjuna.ats.arjuna.AtomicAction
Modifier and Type | Field and Description |
---|---|
protected static org.jboss.logging.Logger |
log |
Constructor and Description |
---|
Transaction() |
Transaction(Coordinator coordinator,
String initiator) |
Transaction(com.arjuna.ats.arjuna.common.Uid uid) |
Modifier and Type | Method and Description |
---|---|
void |
addVolatileParticipant(String vparticipantURI) |
protected boolean |
afterCompletion(int arjunaStatus) |
protected boolean |
afterCompletion(int arjunaStatus,
boolean report_heuristics) |
protected boolean |
beforeCompletion() |
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, 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
public Transaction()
public Transaction(Coordinator coordinator, String initiator)
public Transaction(com.arjuna.ats.arjuna.common.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()
beforeCompletion
in class com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator
protected boolean afterCompletion(int arjunaStatus)
afterCompletion
in class com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator
protected boolean afterCompletion(int arjunaStatus, boolean report_heuristics)
afterCompletion
in class com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.