|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atomikos.datasource.xa.XAResourceTransaction
public class XAResourceTransaction
An implementation of ResourceTransaction for XA transactions.
| Field Summary |
|---|
| Fields inherited from interface com.atomikos.icatch.Participant |
|---|
READ_ONLY |
| Constructor Summary | |
|---|---|
XAResourceTransaction()
|
|
| Method Summary | |
|---|---|
void |
addCompensationContext(Dictionary context)
|
void |
addHeuristicMessage(HeuristicMessage mesg)
|
HeuristicMessage[] |
commit(boolean onePhase)
|
boolean |
equals(Object o)
Absolutely necessary for coordinator to work correctly |
protected void |
forceRefreshXAConnection()
|
void |
forget()
|
Dictionary |
getCompensationContext()
|
HeuristicMessage[] |
getHeuristicMessages()
|
Object |
getState()
|
String |
getTid()
|
String |
getURI()
|
Xid |
getXid()
Get the Xid. |
int |
hashCode()
Absolutely necessary for coordinator to work correctly |
protected static String |
interpretErrorCode(String resourceName,
String opCode,
Xid xid,
int errorCode)
|
boolean |
isActive()
Test if the restx is active (in use). |
boolean |
isXaSuspended()
Test if the resource has been ended with TMSUSPEND. |
int |
prepare()
|
void |
readExternal(ObjectInput in)
|
boolean |
recover()
|
void |
resume()
|
HeuristicMessage[] |
rollback()
|
void |
setCascadeList(Dictionary allParticipants)
|
void |
setGlobalSiblingCount(int count)
|
protected void |
setRecoveredXAResource(XAResource xaresource)
|
void |
setXAResource(XAResource xaresource)
Set the XAResource attribute. |
void |
suspend()
|
protected void |
testOrRefreshXAResourceFor2PC()
|
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
void |
xaResume()
Perform an xa resume |
void |
xaSuspend()
Perform an XA suspend. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XAResourceTransaction()
| Method Detail |
|---|
protected static String interpretErrorCode(String resourceName,
String opCode,
Xid xid,
int errorCode)
protected void testOrRefreshXAResourceFor2PC()
throws XAException
XAException
protected void forceRefreshXAConnection()
throws XAException
XAException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundExceptionpublic String getTid()
getTid in interface ResourceTransactionResourceTransaction.
public void addCompensationContext(Dictionary context)
throws IllegalStateException
IllegalStateExceptionResourceTransaction.
public void addHeuristicMessage(HeuristicMessage mesg)
throws IllegalStateException
addHeuristicMessage in interface ResourceTransactionIllegalStateExceptionResourceTransaction.public HeuristicMessage[] getHeuristicMessages()
getHeuristicMessages in interface ResourceTransactiongetHeuristicMessages in interface ParticipantResourceTransaction.public Dictionary getCompensationContext()
ResourceTransaction.
public void suspend()
throws ResourceException
suspend in interface ResourceTransactionResourceExceptionResourceTransaction.
public void resume()
throws ResourceException
resume in interface ResourceTransactionResourceExceptionResourceTransaction.
public void setCascadeList(Dictionary allParticipants)
throws SysException
setCascadeList in interface ParticipantSysExceptionParticipantpublic Object getState()
public boolean recover()
throws SysException
recover in interface ParticipantSysExceptionParticipantpublic void setGlobalSiblingCount(int count)
setGlobalSiblingCount in interface ParticipantParticipantpublic void forget()
forget in interface ParticipantParticipant
public int prepare()
throws RollbackException,
HeurHazardException,
HeurMixedException,
SysException
prepare in interface ParticipantRollbackException
HeurHazardException
HeurMixedException
SysExceptionParticipant
public HeuristicMessage[] rollback()
throws HeurCommitException,
HeurMixedException,
HeurHazardException,
SysException
rollback in interface ParticipantHeurCommitException
HeurMixedException
HeurHazardException
SysExceptionParticipant.
public HeuristicMessage[] commit(boolean onePhase)
throws HeurRollbackException,
HeurHazardException,
HeurMixedException,
RollbackException,
SysException
commit in interface ParticipantHeurRollbackException
HeurHazardException
HeurMixedException
RollbackException
SysExceptionParticipantpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic Xid getXid()
protected void setRecoveredXAResource(XAResource xaresource)
public void setXAResource(XAResource xaresource)
xaresource - The new XAResource to use. This new XAResource represents the
new connection to the XA database. Necessary because on reuse,
the old xaresource may be in use by another thread, for
another transaction.
public void xaSuspend()
throws XAException
XAException
public void xaResume()
throws XAException
XAExceptionpublic boolean isXaSuspended()
public boolean isActive()
public String getURI()
getURI in interface ParticipantParticipant.getURI()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||