Class AnnoWorkManager
java.lang.Object
com.sun.ts.tests.common.connector.whitebox.annotated.AnnoWorkManager
AnnoWorkManager is a class that manages work submissions and transactions using the Jakarta Resource SPI WorkManager
and XATerminator.
-
Constructor Summary
ConstructorsConstructorDescriptionAnnoWorkManager(jakarta.resource.spi.BootstrapContext val) Constructor for AnnoWorkManager. -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs debug messages.voiddoTCWork()Submits a work object with a transaction context to the WorkManager.voiddoWork()Submits a work object to the WorkManager.Gets the nested Xid for this AnnoWorkManager.getXid()Gets the Xid for this AnnoWorkManager.voidrunTests()Runs a series of tests including work submission and transaction context work.voidsetNestXid(Xid xid) Sets the nested Xid for this AnnoWorkManager.voidSets the Xid for this AnnoWorkManager.voidSubmits nested work objects where only one of the work objects has a transaction context.
-
Constructor Details
-
AnnoWorkManager
public AnnoWorkManager(jakarta.resource.spi.BootstrapContext val) Constructor for AnnoWorkManager.- Parameters:
val- the BootstrapContext to initialize the WorkManager and XATerminator
-
-
Method Details
-
runTests
public void runTests()Runs a series of tests including work submission and transaction context work. -
doWork
public void doWork()Submits a work object to the WorkManager. -
doTCWork
public void doTCWork()Submits a work object with a transaction context to the WorkManager. -
setXid
Sets the Xid for this AnnoWorkManager.- Parameters:
xid- the Xid to set
-
getXid
Gets the Xid for this AnnoWorkManager.- Returns:
- the current Xid
-
setNestXid
Sets the nested Xid for this AnnoWorkManager.- Parameters:
xid- the nested Xid to set
-
getNestXid
Gets the nested Xid for this AnnoWorkManager.- Returns:
- the current nested Xid
-
submitNestedXidWork
public void submitNestedXidWork()Submits nested work objects where only one of the work objects has a transaction context. -
debug
Logs debug messages.- Parameters:
out- the debug message to log
-