Class StatusChecker

java.lang.Object
com.arjuna.ats.internal.jts.recovery.contact.StatusChecker

public class StatusChecker extends Object
Checks the status of a transaction as known to the original process that created it - assuming the transaction still exists. (relies on the fact (true for 2.1) that any ArjunaFactory can be used to find the status of any transaction. Singleton class
  • Constructor Summary

    Constructors
    Constructor
    Description
    why isn't this private
  • Method Summary

    Modifier and Type
    Method
    Description
    checkOriginalStatus(Uid transactionUid, Uid itemUid, boolean checkTheObjectStore)
    Check the status of a transaction when the contact item uid is known.
    static Status
    get_current_status(Uid transactionUid, Uid itemUid)
    get the current status in the original process, given the uid of the contact item (which is the uid of the process).
    static Status
    get_status(Uid transactionUid, Uid itemUid)
    get the status in the original process, given the uid of the contact item (which is the uid of the process)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StatusChecker

      public StatusChecker()
      why isn't this private
  • Method Details

    • get_status

      public static Status get_status(Uid transactionUid, Uid itemUid) throws Inactive
      get the status in the original process, given the uid of the contact item (which is the uid of the process)
      Throws:
      Inactive
    • get_current_status

      public static Status get_current_status(Uid transactionUid, Uid itemUid) throws Inactive
      get the current status in the original process, given the uid of the contact item (which is the uid of the process). Note that this method is used by the GenericRecoveryCoordinator code only.
      Throws:
      Inactive
    • checkOriginalStatus

      public Status checkOriginalStatus(Uid transactionUid, Uid itemUid, boolean checkTheObjectStore) throws Inactive
      Check the status of a transaction when the contact item uid is known. This method *must* only be called from replay_completion, since it relies upon this fact to differentiate between a committed or rolled back transaction in the event of finding no intentions list in the object store.
      Returns:
      the status of the transaction as known in the original process.
      Throws:
      Inactive - if the original process is no longer active.