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 SummaryConstructorsConstructorDescriptionAnnoWorkManager(jakarta.resource.spi.BootstrapContext val) Constructor for AnnoWorkManager.
- 
Method SummaryModifier 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- 
AnnoWorkManagerpublic AnnoWorkManager(jakarta.resource.spi.BootstrapContext val) Constructor for AnnoWorkManager.- Parameters:
- val- the BootstrapContext to initialize the WorkManager and XATerminator
 
 
- 
- 
Method Details- 
runTestspublic void runTests()Runs a series of tests including work submission and transaction context work.
- 
doWorkpublic void doWork()Submits a work object to the WorkManager.
- 
doTCWorkpublic void doTCWork()Submits a work object with a transaction context to the WorkManager.
- 
setXidSets the Xid for this AnnoWorkManager.- Parameters:
- xid- the Xid to set
 
- 
getXidGets the Xid for this AnnoWorkManager.- Returns:
- the current Xid
 
- 
setNestXidSets the nested Xid for this AnnoWorkManager.- Parameters:
- xid- the nested Xid to set
 
- 
getNestXidGets the nested Xid for this AnnoWorkManager.- Returns:
- the current nested Xid
 
- 
submitNestedXidWorkpublic void submitNestedXidWork()Submits nested work objects where only one of the work objects has a transaction context.
- 
debugLogs debug messages.- Parameters:
- out- the debug message to log
 
 
-