Class StatusChecker
java.lang.Object
com.arjuna.ats.internal.jts.recovery.contact.StatusChecker
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
-
Method Summary
Modifier and TypeMethodDescriptioncheckOriginalStatus
(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)
-
Constructor Details
-
StatusChecker
public StatusChecker()why isn't this private
-
-
Method Details
-
get_status
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
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.
-