Class TestXAResource
java.lang.Object
org.jboss.as.test.integration.transactions.TestXAResource
- All Implemented Interfaces:
XAResource
- Direct Known Subclasses:
PersistentTestXAResource,TestLastResource
Test
XAResource class.- Author:
- Ondra Chaloupka <ochaloup@redhat.com>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY -
Constructor Summary
ConstructorsConstructorDescriptionTestXAResource(TestXAResource.TestAction testAction) TestXAResource(TestXAResource.TestAction testAction, TransactionCheckerSingleton checker) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidintbooleanisSameRM(XAResource xares) intXid[]recover(int flag) voidbooleansetTransactionTimeout(int seconds) void
-
Field Details
-
testAction
-
-
Constructor Details
-
TestXAResource
-
TestXAResource
public TestXAResource() -
TestXAResource
-
TestXAResource
-
-
Method Details
-
prepare
- Specified by:
preparein interfaceXAResource- Throws:
XAException
-
commit
- Specified by:
commitin interfaceXAResource- Throws:
XAException
-
rollback
- Specified by:
rollbackin interfaceXAResource- Throws:
XAException
-
end
- Specified by:
endin interfaceXAResource- Throws:
XAException
-
forget
- Specified by:
forgetin interfaceXAResource- Throws:
XAException
-
getTransactionTimeout
- Specified by:
getTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
isSameRM
- Specified by:
isSameRMin interfaceXAResource- Throws:
XAException
-
recover
- Specified by:
recoverin interfaceXAResource- Throws:
XAException
-
setTransactionTimeout
- Specified by:
setTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
start
- Specified by:
startin interfaceXAResource- Throws:
XAException
-
getPreparedXids
-