|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.sql.spy.SpyXAResource
public class SpyXAResource
Spying on a connection.
| Field Summary | |
|---|---|
protected static L10N |
L
|
protected static java.util.logging.Logger |
log
|
| Fields inherited from interface javax.transaction.xa.XAResource |
|---|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
| Constructor Summary | |
|---|---|
SpyXAResource(java.lang.String id,
XAResource resource)
Creates a new SpyXAResource |
|
| Method Summary | |
|---|---|
void |
commit(Xid xid,
boolean onePhase)
Commits the resource |
void |
end(Xid xid,
int flags)
Starts the resource. |
void |
forget(Xid xid)
Forgets the transaction |
int |
getTransactionTimeout()
Gets the transaction timeout. |
XAResource |
getXAResource()
Returns the underlying resource. |
boolean |
isSameRM(XAResource resource)
Returns true if the underlying RM is the same. |
protected void |
log(long start,
java.lang.String msg)
|
int |
prepare(Xid xid)
Rolls the resource back |
Xid[] |
recover(int flags)
Rolls the resource back |
void |
rollback(Xid xid)
Rolls the resource back |
boolean |
setTransactionTimeout(int seconds)
Sets the transaction timeout. |
protected long |
start()
|
void |
start(Xid xid,
int flags)
Starts the resource. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final java.util.logging.Logger log
protected static final L10N L
| Constructor Detail |
|---|
public SpyXAResource(java.lang.String id,
XAResource resource)
| Method Detail |
|---|
public XAResource getXAResource()
protected long start()
protected void log(long start,
java.lang.String msg)
public boolean setTransactionTimeout(int seconds)
throws XAException
setTransactionTimeout in interface XAResourceXAException
public int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAException
public boolean isSameRM(XAResource resource)
throws XAException
isSameRM in interface XAResourceXAException
public void start(Xid xid,
int flags)
throws XAException
start in interface XAResourceXAException
public void end(Xid xid,
int flags)
throws XAException
end in interface XAResourceXAException
public int prepare(Xid xid)
throws XAException
prepare in interface XAResourceXAException
public void commit(Xid xid,
boolean onePhase)
throws XAException
commit in interface XAResourceXAException
public void rollback(Xid xid)
throws XAException
rollback in interface XAResourceXAException
public Xid[] recover(int flags)
throws XAException
recover in interface XAResourceXAException
public void forget(Xid xid)
throws XAException
forget 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 | |||||||||