|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.tools.profiler.XAResourceWrapper
public class XAResourceWrapper
| Field Summary |
|---|
| Fields inherited from interface javax.transaction.xa.XAResource |
|---|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
| Constructor Summary | |
|---|---|
XAResourceWrapper(ProfilerPoint profilerPoint,
XAResource xaResource)
|
|
| Method Summary | |
|---|---|
void |
commit(Xid xid,
boolean b)
Called to commit. |
void |
end(Xid xid,
int i)
Called when the resource is is done with a transaction. |
void |
forget(Xid xid)
Called to forget an Xid that had a heuristic commit. |
int |
getTransactionTimeout()
Gets the transaction timeout in seconds. |
boolean |
isSameRM(XAResource xaResource)
Returns true if the specified resource has the same RM. |
int |
prepare(Xid xid)
Called to start the first phase of the commit. |
Xid[] |
recover(int i)
Called to find Xid's that need recovery. |
void |
rollback(Xid xid)
Called to roll back. |
boolean |
setTransactionTimeout(int i)
Sets the transaction timeout in seconds. |
void |
start(Xid xid,
int i)
Called when the resource is associated with a transaction. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XAResourceWrapper(ProfilerPoint profilerPoint,
XAResource xaResource)
| Method Detail |
|---|
public void commit(Xid xid,
boolean b)
throws XAException
XAResource
commit in interface XAResourceXAException
public void end(Xid xid,
int i)
throws XAException
XAResource
end in interface XAResourceXAException
public void forget(Xid xid)
throws XAException
XAResource
forget in interface XAResourceXAException
public int getTransactionTimeout()
throws XAException
XAResource
getTransactionTimeout in interface XAResourceXAException
public boolean isSameRM(XAResource xaResource)
throws XAException
XAResource
isSameRM in interface XAResourceXAException
public int prepare(Xid xid)
throws XAException
XAResource
prepare in interface XAResourceXAException
public Xid[] recover(int i)
throws XAException
XAResource
recover in interface XAResourceXAException
public void rollback(Xid xid)
throws XAException
XAResource
rollback in interface XAResourceXAException
public boolean setTransactionTimeout(int i)
throws XAException
XAResource
setTransactionTimeout in interface XAResourceXAException
public void start(Xid xid,
int i)
throws XAException
XAResource
start in interface XAResourceXAExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||