public interface ITXPMonitor
Modifier and Type | Method and Description |
---|---|
ITXPCoordinator |
getCoordinator()
Returns the coordinator
|
void |
onBeganProcess(ITXProcess process)
Called when a process created and associated with he controller
|
void |
onCommitCanceled(ITXProcess process,
TXPException reason)
Called when the process aborts committing.
|
void |
onCommitInitiated(ITXProcess process)
Called when a process is called to attempt a commit
|
void |
onMonitorAdded(ITXPMonitor monitor)
Called when a monitor is added to the coordinator's monitor chain
|
void |
onMonitorRemoved(ITXPMonitor monitor)
Called when a monitor is removed from the coordinator's monitor chain
|
void |
onNodeAssociated(ITXProcess process,
ITXPNode node,
ITXPNode.State returnedState)
Called when a node is associated with a process
|
void |
onNodeCommitFailedPolicyAction(ITXProcess process,
ITXPNode node,
ITXPPolicy.Action action)
Called when the policy action is determined for a node that failed to
commit
|
void |
onNodeDisassociated(ITXProcess process,
ITXPNode node)
Called when a node is disassociated from a process
|
void |
onNodeReady(ITXProcess process,
ITXPNode node,
ITXPNode.State returnedState)
Called when a node has finished doing the work needed
|
void |
onNodeReadyFailedPolicyAction(ITXProcess process,
ITXPNode node,
ITXPPolicy.Action action)
Called when the policy action is determined for a node that failed
processing
|
void |
onNodeRollbackFailedPolicyAction(ITXProcess process,
ITXPNode node,
ITXPPolicy.Action action)
Called when the policy action is determined for a node that failed to
rollback
|
void |
onNodeTimeoutSignaled(ITXProcess process,
ITXPNode node)
Called when a node indicates it timed out waiting on the process.
|
void |
onNodeTimeoutSignaledPolicyAction(ITXProcess process,
ITXPNode node,
ITXPPolicy.Action action)
Called when the policy action is determined for a node that timed out
waiting for completion.
|
void |
onProcessCompleted(ITXProcess process)
Called when a process has been completed (either committed or rolled back)
|
void |
onProcessCreated(ITXProcess process)
Called when the process is created.
|
void |
onProcessTimeoutSignaled(ITXProcess process)
Called when a process indicates it timed out waiting on the nodes
|
void |
onProcessTimeoutSignaledPolicyAction(ITXProcess process,
ITXPPolicy.Action action)
Called when the policy action is determined for a process that timed out
waiting for the nodes to do the work.
|
void |
onRollbackCanceled(ITXProcess process,
TXPException reason)
Called when the process aborts rolling back.
|
void |
onRollbackInitiated(ITXProcess process)
Called when a process is called to attempt a rollback
|
void onProcessCreated(ITXProcess process)
process
- The process.ITXPCoordinator getCoordinator()
void onMonitorAdded(ITXPMonitor monitor)
monitor
- the monitor that got addedvoid onMonitorRemoved(ITXPMonitor monitor)
monitor
- the monitor that got removedvoid onBeganProcess(ITXProcess process)
process
- the processvoid onNodeAssociated(ITXProcess process, ITXPNode node, ITXPNode.State returnedState)
process
- the processnode
- the nodereturnedState
- the returned node statevoid onNodeDisassociated(ITXProcess process, ITXPNode node)
process
- the processnode
- the nodevoid onNodeReady(ITXProcess process, ITXPNode node, ITXPNode.State returnedState)
process
- the processnode
- the nodereturnedState
- the node state after attempting to do the workvoid onNodeTimeoutSignaled(ITXProcess process, ITXPNode node)
process
- the processnode
- the nodevoid onProcessTimeoutSignaled(ITXProcess process)
process
- the processvoid onCommitInitiated(ITXProcess process)
process
- the processvoid onCommitCanceled(ITXProcess process, TXPException reason)
process
- the processreason
- the exception thrown by the commitvoid onRollbackInitiated(ITXProcess process)
process
- the processvoid onRollbackCanceled(ITXProcess process, TXPException reason)
process
- the processreason
- the exception thrown by the rollbackvoid onNodeReadyFailedPolicyAction(ITXProcess process, ITXPNode node, ITXPPolicy.Action action)
process
- the processnode
- the nodeaction
- the policy actionvoid onNodeCommitFailedPolicyAction(ITXProcess process, ITXPNode node, ITXPPolicy.Action action)
process
- the processnode
- the nodeaction
- the actionvoid onNodeRollbackFailedPolicyAction(ITXProcess process, ITXPNode node, ITXPPolicy.Action action)
process
- the processnode
- the nodeaction
- the actionvoid onNodeTimeoutSignaledPolicyAction(ITXProcess process, ITXPNode node, ITXPPolicy.Action action)
process
- the processnode
- the nodeaction
- the actionvoid onProcessTimeoutSignaledPolicyAction(ITXProcess process, ITXPPolicy.Action action)
process
- the processaction
- the actionvoid onProcessCompleted(ITXProcess process)
process
- The process.iizi® is a registered trademark of Mindus SARL. © Copyright 2019 Mindus SARL. All rights reserved.