java.lang.Object
com.sun.ts.tests.common.connector.whitebox.annotated.AnnoWorkManager

public class AnnoWorkManager extends Object
AnnoWorkManager is a class that manages work submissions and transactions using the Jakarta Resource SPI WorkManager and XATerminator.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AnnoWorkManager(jakarta.resource.spi.BootstrapContext val)
    Constructor for AnnoWorkManager.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Logs debug messages.
    void
    Submits a work object with a transaction context to the WorkManager.
    void
    Submits a work object to the WorkManager.
    Gets the nested Xid for this AnnoWorkManager.
    Gets the Xid for this AnnoWorkManager.
    void
    Runs a series of tests including work submission and transaction context work.
    void
    Sets the nested Xid for this AnnoWorkManager.
    void
    setXid(Xid xid)
    Sets the Xid for this AnnoWorkManager.
    void
    Submits nested work objects where only one of the work objects has a transaction context.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void setXid(Xid xid)
      Sets the Xid for this AnnoWorkManager.
      Parameters:
      xid - the Xid to set
    • getXid

      public Xid getXid()
      Gets the Xid for this AnnoWorkManager.
      Returns:
      the current Xid
    • setNestXid

      public void setNestXid(Xid xid)
      Sets the nested Xid for this AnnoWorkManager.
      Parameters:
      xid - the nested Xid to set
    • getNestXid

      public Xid 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

      public void debug(String out)
      Logs debug messages.
      Parameters:
      out - the debug message to log