Package com.iizix.txp
Interface ITXPManagementInfo
public interface ITXPManagementInfoHolds the management info for a process. NOTE: UNDER DESIGN!!- Author:
- Freggle
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<ITXPid>getFailingNodesInCommit()Gets the list of the node pids that failed to commit.java.util.List<ITXPid>getFailingNodesInRollback()Gets the list of the node pids that failed to rollback.ITXPidgetFixingPid()Gets the Pid of the fixing process.ITXPManagementInfogetFixingProcessInfo()Gets the management info of the fixing process.java.util.List<ITXPid>getNodes()Gets the list of Pids of all associated nodesITXPidgetPid()Gets the Pid of the process.java.util.List<ITXPPolicy.Action>getPolicyActions()Gets the list of all policy actions taken for this process.booleanhasSucceeded()Returns if the process completed successfully.booleanisFixed()Returns if the process has been fixed.booleanisMarkedForManualFixing()Return if this process has been marked for manual fixing only.booleanwasCommitAttempted()Was a commit attempted?booleanwasCompletionPhaseEntered()Was the completion phase of the process entered.booleanwasRollbackAttempted()Was rollback attempted? Note: If both this and wasCommitAttempted is true the rollback was caused by the commit.
Method Detail
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
java.util.List<ITXPid> getNodes()
Gets the list of Pids of all associated nodes- Returns:
- the list of Pids of all associated nodes
getFailingNodesInCommit
java.util.List<ITXPid> getFailingNodesInCommit()
Gets the list of the node pids that failed to commit.- Returns:
- the list of node pids that failed to commit
getFailingNodesInRollback
java.util.List<ITXPid> getFailingNodesInRollback()
Gets the list of the node pids that failed to rollback.- Returns:
- the list of node pids that failed to rollback
getPolicyActions
java.util.List<ITXPPolicy.Action> getPolicyActions()
Gets the list of all policy actions taken for this process.- Returns:
- the list of policy actions