Package com.iizix.txp
Interface ITXPManagementInfo
public interface ITXPManagementInfo
Holds the management info for a process. NOTE: UNDER DESIGN!!
- Author:
- Freggle
Method Summary
Modifier and TypeMethodDescriptionGets the list of the node pids that failed to commit.Gets the list of the node pids that failed to rollback.Gets the Pid of the fixing process.Gets the management info of the fixing process.getNodes()
Gets the list of Pids of all associated nodesgetPid()
Gets the Pid of the process.Gets the list of all policy actions taken for this process.boolean
Returns if the process completed successfully.boolean
isFixed()
Returns if the process has been fixed.boolean
Return if this process has been marked for manual fixing only.boolean
Was a commit attempted?boolean
Was the completion phase of the process entered.boolean
Was rollback attempted? Note: If both this and wasCommitAttempted is true the rollback was caused by the commit.
Method Details
getPid
ITXPid getPid()Gets the Pid of the process.- Returns:
- the Pid
hasSucceeded
boolean hasSucceeded()Returns if the process completed successfully.- Returns:
- true if successfully; false if not
isFixed
boolean isFixed()Returns if the process has been fixed.- Returns:
- true if fixed; false if not
getFixingPid
ITXPid getFixingPid()Gets the Pid of the fixing process.- Returns:
- the Pid of the process that fixed this process; null if it has not been fixed
getFixingProcessInfo
ITXPManagementInfo getFixingProcessInfo()Gets the management info of the fixing process.- Returns:
- the management info of the process that fixed this process; null if it has not been fixed
isMarkedForManualFixing
boolean isMarkedForManualFixing()Return if this process has been marked for manual fixing only.- Returns:
- true if marked; false if not
wasCommitAttempted
boolean wasCommitAttempted()Was a commit attempted?- Returns:
- true if commit attempted; false if not
wasRollbackAttempted
boolean wasRollbackAttempted()Was rollback attempted? Note: If both this and wasCommitAttempted is true the rollback was caused by the commit.- Returns:
- true if rollback was attempted; false if not
wasCompletionPhaseEntered
boolean wasCompletionPhaseEntered()Was the completion phase of the process entered.- Returns:
- true if the process entered the completion phase; false if not
getNodes
Gets the list of Pids of all associated nodes- Returns:
- the list of Pids of all associated nodes
getFailingNodesInCommit
Gets the list of the node pids that failed to commit.- Returns:
- the list of node pids that failed to commit
getFailingNodesInRollback
Gets the list of the node pids that failed to rollback.- Returns:
- the list of node pids that failed to rollback
getPolicyActions
List<ITXPPolicy.Action> getPolicyActions()Gets the list of all policy actions taken for this process.- Returns:
- the list of policy actions