Class TSResourceManager
java.lang.Object
com.sun.ts.tests.common.connector.whitebox.TSResourceManager
Resource Manager for the TSeis. Completely based on JTS.
- Version:
- 1.0, 06/06/02
- Author:
- Binod P.G
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseRM()Closes the Resource Manager.voidCommits the Global Transaction branch.voidEnds the Global Transaction branch.voidopenRM()Opens the Resource Manager.intPrepare the Global Transaction branch.voidRolls back the Global Transaction branch.voidstart(Xid xid, int flags, TSConnection con) Starts the new Global Transaction branch.
-
Constructor Details
-
TSResourceManager
public TSResourceManager()Creates the Resource Manager.
-
-
Method Details
-
openRM
public void openRM()Opens the Resource Manager. -
closeRM
public void closeRM()Closes the Resource Manager. -
start
Starts the new Global Transaction branch. transaction can be started in three ways. 1. With no flags (TMNOFLAGS) : This is starting a new transaction 2. With join flag(TMJOIN) : This is joining new transaction 3. With resume flag(TRESUME) : This is resuming a suspended transaction- Parameters:
xid- Global Id for the transaction.flags- Flags used for Transaction. For more details see JTA spec.con- Connection involved in the Global Transaction.- Throws:
XAExcpetion- In case of a failure / Invalid flag / Invalid XA protocol.XAException
-
end
Ends the Global Transaction branch.- Parameters:
xid- Global Id for the transaction.flags- Flags used for Transaction. For more details see JTA spec.- Throws:
XAExcpetion- In case of a failure / Invalid flag / Invalid XA protocol.XAException
-
prepare
Prepare the Global Transaction branch.- Parameters:
xid- Global Id for the transaction.- Throws:
XAExcpetion- In case of a failure / Invalid XA protocol.XAException
-
commit
Commits the Global Transaction branch.- Parameters:
xid- Global Id for the transaction.- Throws:
XAExcpetion- In case of a failure / Invalid XA protocol.XAException
-
rollback
Rolls back the Global Transaction branch.- Parameters:
xid- Global Id for the transaction.- Throws:
XAExcpetion- In case of a failure / Invalid XA protocol.XAException
-