Class Transaction

All Implemented Interfaces:
Reapable
Direct Known Subclasses:
RecoveringTransaction

public class Transaction extends AtomicAction
  • Field Details

    • log

      protected static final org.jboss.logging.Logger log
  • Constructor Details

    • Transaction

      public Transaction()
    • Transaction

      public Transaction(Coordinator coordinator, String initiator)
    • Transaction

      public Transaction(Uid uid)
  • Method Details

    • toXML

      public org.jboss.jbossts.star.util.media.txstatusext.CoordinatorElement toXML()
    • getInitiator

      public String getInitiator()
    • getAge

      public String getAge()
    • getStatus

      public String getStatus()
    • lookupStatus

      protected int lookupStatus()
    • getStatus

      public String getStatus(int status)
    • getTxStatus

      public org.jboss.jbossts.star.util.TxStatus getTxStatus()
    • getRecoveryUrl

      public String getRecoveryUrl()
    • enlistParticipant

      public String enlistParticipant(String coordinatorUrl, String participantUrl, String recoveryUrlBase, String terminateUrl)
    • enlistParticipant

      public String enlistParticipant(String coordinatorUrl, String participantUrl, String recoveryUrlBase, String commitURI, String prepareURI, String rollbackURI, String commitOnePhaseURI)
    • isEnlisted

      public boolean isEnlisted(String participantUrl)
      Determine whether a participant is enlisted in this transaction and the commitment is not running.
      Parameters:
      participantUrl - the participant url to search for
      Returns:
      false if the participant is not enlisted or if the commitment protocol is already running
    • forgetParticipant

      public boolean forgetParticipant(String participantUrl)
    • getParticipants

      public void getParticipants(Collection<String> enlistmentIds)
    • setFault

      public void setFault(String fault)
    • isFinishing

      public boolean isFinishing()
    • isAlive

      public boolean isAlive()
    • isRunning

      public boolean isRunning()
    • getStatus

      public boolean getStatus(org.jboss.jbossts.star.util.media.txstatusext.TwoPhaseAwareParticipantElement participantElement, String participantUrl)
    • addVolatileParticipant

      public void addVolatileParticipant(String vparticipantURI)
    • beforeCompletion

      protected boolean beforeCompletion()
      Description copied from class: TwoPhaseCoordinator
      Drive beforeCompletion participants.
      Overrides:
      beforeCompletion in class TwoPhaseCoordinator
      Returns:
      true if successful, false otherwise.
    • afterCompletion

      protected boolean afterCompletion(int arjunaStatus)
      Description copied from class: TwoPhaseCoordinator
      Drive afterCompletion participants.
      Overrides:
      afterCompletion in class TwoPhaseCoordinator
      Parameters:
      arjunaStatus - the outcome of the transaction (ActionStatus.COMMITTED or ActionStatus.ABORTED).
      Returns:
      true if successful, false otherwise.
    • afterCompletion

      protected boolean afterCompletion(int arjunaStatus, boolean report_heuristics)
      Description copied from class: TwoPhaseCoordinator
      Drive afterCompletion participants.
      Overrides:
      afterCompletion in class TwoPhaseCoordinator
      Parameters:
      arjunaStatus - the outcome of the transaction (ActionStatus.COMMITTED or ActionStatus.ABORTED).
      report_heuristics - does the caller want to be informed about heurisitics at the point of invocation?
      Returns:
      true if successful, false otherwise.