Package com.iizix.txp
Interface ITXPCoordinator
- All Superinterfaces:
- ITXPMonitor
- All Known Implementing Classes:
- TXPCoordinatorImpl
The 
ITXPCoordinator interface.- Author:
- Freggle
- Method SummaryModifier and TypeMethodDescription- void- addMonitor- (ITXPMonitor monitor) Adds the specified TXP monitor.- void- commit- (ITXProcess process) Called by the process to signal that the process logic/application requests a commit.Creates a new implementation specific- ITXProcessinstance and sets itself as coordinator.- void- ready- (ITXProcess process, ITXPNode node, ITXPNode.State nodeState) Called by the process to signal that a node is ready for completion.- void- removeMonitor- (ITXPMonitor monitor) Removes the specified TXP monitor.- void- rollback- (ITXProcess process) Called by the process to signal that the process logic/application requests a rollback.- Methods inherited from interface com.iizix.txp.ITXPMonitor- getCoordinator, onBeganProcess, onCommitCanceled, onCommitInitiated, onMonitorAdded, onMonitorRemoved, onNodeAssociated, onNodeCommitFailedPolicyAction, onNodeDisassociated, onNodeReady, onNodeReadyFailedPolicyAction, onNodeRollbackFailedPolicyAction, onNodeTimeoutSignaled, onNodeTimeoutSignaledPolicyAction, onProcessCompleted, onProcessCreated, onProcessTimeoutSignaled, onProcessTimeoutSignaledPolicyAction, onRollbackCanceled, onRollbackInitiated
- Method Details- newProcessITXProcess newProcess()Creates a new implementation specific- ITXProcessinstance and sets itself as coordinator.- Returns:
- an ITXProcessinstance
 
- readyCalled by the process to signal that a node is ready for completion. Typically the coordinator handles error states that may occur using a policy.- Parameters:
- process- the process
- node- the node
- nodeState- the current state of the node
 
- commitCalled by the process to signal that the process logic/application requests a commit. Typically the coordinator coordinates the commit and handles error states that may occur using a policy.- Parameters:
- process- the process
- Throws:
- TXPException- a coordinator and policy dependent exception (today 1 of 3, more details later)
 
- rollbackCalled by the process to signal that the process logic/application requests a rollback. Typically the coordinator coordinates the commit and handles error states that may occur using a policy.- Parameters:
- process- the process
- Throws:
- TXPException- a coordinator and policy dependent exception (today 1 of 3, more details later)
 
- addMonitorAdds the specified TXP monitor. Monitors can be used for logging and monitoring processes under this coordinator's control.- Parameters:
- monitor- the monitor
 
- removeMonitorRemoves the specified TXP monitor.- Parameters:
- monitor- The monitor.