Package com.iizix.txp
Interface ITXPManagementAPI
public interface ITXPManagementAPI
TXP Management interface NOTE: UNDER DESIGN!!
- Author:
- Freggle
Method Summary
Modifier and TypeMethodDescriptiongetManagementInfo
(ITXPid pid) Gets the management info of the specified process.Gets the management info of all unfixed completed processes.void
Marks a process fixed specifying the fixing process.void
Marks a process for manual fixing only.void
retry
(ITXPManagementInfo info) Retries the whole process.void
Retries only the failed nodes in a process.void
retrySingleNode
(ITXPManagementInfo info, ITXPid pid) Retries only a single node.
Method Details
getManagementInfo
Gets the management info of the specified process.- Parameters:
pid
- the Pid of the process- Returns:
- the management info of the process
getUnfixedCompletedProcesses
List<ITXPManagementInfo> getUnfixedCompletedProcesses()Gets the management info of all unfixed completed processes. Those are processes that finished in a heuristic mixed state.- Returns:
- a list with the info of all unfixed processes
retry
Retries the whole process. Note that this can only be done if the succeeded nodes are idempotent or undone and the resources managed by the failed nodes are back in the state before they were associated or are idempotent. If successful the original process should be marked fixed with the Pid of the retry process.- Parameters:
info
- the info for the process to retry
retryAllFailed
Retries only the failed nodes in a process. Note that failed means their commit or rollback failed. This can only be done if the the resources managed by the failed nodes are back in the state before they were associated or are idempotent. If successful the original process should be marked fixed with the Pid of the retry process.- Parameters:
info
- the info for the process to retry
retrySingleNode
Retries only a single node. Note that failed means its commit or rollback failed. This can only be done if the the resources managed by the failed node are back in the state before it was associated or the node is idempotent idempotent. If successful the original process should be marked fixed with the Pid of the retry process.- Parameters:
info
- the info for the process to retrypid
- the Pid of the node to retry
markFixed
Marks a process fixed specifying the fixing process.- Parameters:
originalPid
- the original processfixingPid
- the fixing process
markForManualFixOnly
Marks a process for manual fixing only.- Parameters:
pid
- Pid of the process to mark