public class ATCoordinator
extends com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator
Constructor and Description |
---|
ATCoordinator() |
ATCoordinator(com.arjuna.ats.arjuna.common.Uid recovery) |
Modifier and Type | Method and Description |
---|---|
Outcome |
coordinate(CompletionStatus cs)
If the application requires and if the coordination protocol supports it,
then this method can be used to execute a coordination protocol on the
currently enlisted participants at any time prior to the termination of
the coordination scope.
|
void |
delistParticipant(Participant act)
Remove the specified participant from the coordinator's list.
|
void |
delistSynchronization(Synchronization act)
Remove the specified synchronization from the coordinator's list.
|
void |
enlistParticipant(Participant act)
Enrol the specified participant with the coordinator associated with the
current thread.
|
void |
enlistSynchronization(Synchronization act)
Enrol the specified synchronization with the coordinator associated with
the current thread.
|
CoordinatorId |
identifier() |
void |
participantReadOnly(String participantId) |
void |
participantRolledBack(String participantId) |
Qualifier[] |
qualifiers() |
String |
type() |
addSynchronization, afterCompletion, afterCompletion, beforeCompletion, cancel, end, getDeferredThrowable, getSynchronizations, running, start, start
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, 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, 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 ATCoordinator()
public ATCoordinator(com.arjuna.ats.arjuna.common.Uid recovery)
public Outcome coordinate(CompletionStatus cs) throws WrongStateException, ProtocolViolationException, SystemException
WrongStateException
- Thrown if the coordinator is in a state the does not allow
coordination to occur.ProtocolViolationException
- Thrown if the protocol is violated in some manner during
execution.SystemException
- Thrown if any other error occurs.public void enlistParticipant(Participant act) throws WrongStateException, DuplicateParticipantException, InvalidParticipantException, SystemException
act
- The participant.WrongStateException
- Thrown if the coordinator is not in a state that allows
participants to be enrolled.DuplicateParticipantException
- Thrown if the participant has already been enrolled and
the coordination protocol does not support multiple
entries.InvalidParticipantException
- Thrown if the participant is invalid.SystemException
- Thrown if any other error occurs.public void delistParticipant(Participant act) throws InvalidParticipantException, WrongStateException, SystemException
InvalidParticipantException
- Thrown if the participant is not known of by the
coordinator.WrongStateException
- Thrown if the state of the coordinator does not allow the
participant to be removed (e.g., in a two-phase protocol
the coordinator is committing.)SystemException
- Thrown if any other error occurs.public void enlistSynchronization(Synchronization act) throws WrongStateException, DuplicateSynchronizationException, InvalidSynchronizationException, SystemException
act
- The synchronization to add.WrongStateException
- Thrown if the coordinator is not in a state that allows
participants to be enrolled.DuplicateSynchronizationException
- Thrown if the participant has already been enrolled and
the coordination protocol does not support multiple
entries.InvalidSynchronizationException
- Thrown if the participant is invalid.SystemException
- Thrown if any other error occurs.public void delistSynchronization(Synchronization act) throws InvalidSynchronizationException, WrongStateException, SystemException
InvalidSynchronizationException
- Thrown if the participant is not known of by the
coordinator.WrongStateException
- Thrown if the state of the coordinator does not allow the
participant to be removed (e.g., in a two-phase protocol
the coordinator is committing.)SystemException
- Thrown if any other error occurs.public Qualifier[] qualifiers() throws SystemException
SystemException
- Thrown if any error occurs.public CoordinatorId identifier() throws SystemException
SystemException
- Thrown if any error occurs.public void participantRolledBack(String participantId) throws InvalidParticipantException, WrongStateException, SystemException
public void participantReadOnly(String participantId) throws InvalidParticipantException, SystemException
public String type()
type
in class com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator
Copyright © 2018 JBoss by Red Hat. All rights reserved.