|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.icatch.imp.SubTransactionCoordinatorParticipant
public class SubTransactionCoordinatorParticipant
A participant for registering a subtx coordinator as a subordinate in 2PC of the parent transaction coordinator.
Field Summary |
---|
Fields inherited from interface com.atomikos.icatch.Participant |
---|
READ_ONLY |
Constructor Summary | |
---|---|
SubTransactionCoordinatorParticipant(CoordinatorImp subordinateCoordinator)
|
Method Summary | |
---|---|
HeuristicMessage[] |
commit(boolean onePhase)
Commit the participant's work. |
void |
forget()
Indicate that a heuristic participant can forget about its work. |
HeuristicMessage[] |
getHeuristicMessages()
Get any heuristic messages so far. |
String |
getURI()
Gets a unique URI for this participant. |
int |
prepare()
Prepare the participant. |
boolean |
recover()
Recover this instance. |
HeuristicMessage[] |
rollback()
Rollback the participant's work. |
void |
setCascadeList(Dictionary allParticipants)
For cascading 2PC, this method sets the information needed to cascade. |
void |
setGlobalSiblingCount(int count)
Set by the root coordinator: the total no of siblings detected. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubTransactionCoordinatorParticipant(CoordinatorImp subordinateCoordinator)
Method Detail |
---|
public boolean recover() throws SysException
Participant
recover
in interface Participant
SysException
- On failure.Participant.recover()
public String getURI()
Participant
getURI
in interface Participant
Participant.getURI()
public void setCascadeList(Dictionary allParticipants) throws SysException
Participant
setCascadeList
in interface Participant
allParticipants
- The information needed by
the transaction monitor for
SysException
- For unexpected failures.Participant.setCascadeList(java.util.Dictionary)
public void setGlobalSiblingCount(int count)
Participant
setGlobalSiblingCount
in interface Participant
count
- The global count.Participant.setGlobalSiblingCount(int)
public int prepare() throws RollbackException, HeurHazardException, HeurMixedException, SysException
Participant
prepare
in interface Participant
RollbackException
- For a NO vote.
This indicates that the participant has already rolled back
(or marked for rollback) the work on behalf of this participant.
HeurHazardException
- On possible conflicts.
This happens for remote participants instances, in case of
communication failures.
HeurMixedException
- If some subordinate
participants voted YES, timed out and committed heuristically
whereas afterwards some NO votes where received.
SysException
- Unexpected errors.Participant.prepare()
public HeuristicMessage[] commit(boolean onePhase) throws HeurRollbackException, HeurHazardException, HeurMixedException, RollbackException, SysException
Participant
commit
in interface Participant
onePhase
- If true, one-phase commit is being started.
If the participant has received a prepare call earlier,
then it should throw a SysException here.
HeurHazardException
- On possible conflicts.
RollbackException
- In case of one-phase commit,
and the transaction has been rolled back at the time
commit is called.
SysException
- Unexpected failure.
HeurRollbackException
HeurMixedException
Participant.commit(boolean)
public HeuristicMessage[] rollback() throws HeurCommitException, HeurMixedException, HeurHazardException, SysException
Participant
rollback
in interface Participant
HeurCommitException
- If the participant committed.
HeurMixedException
- If part of it was rolled back.
HeurHazardException
- If the participant's final state
is unsure.
SysException
- Unexpected failure.Participant.rollback()
public void forget()
Participant
forget
in interface Participant
Participant.forget()
public HeuristicMessage[] getHeuristicMessages()
Participant
getHeuristicMessages
in interface Participant
Participant.getHeuristicMessages()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |