Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 14 Fault Tolerance Programming : Fault Tolerance Callback Actions

Fault Tolerance Callback Actions
Fault tolerance callback functions receive an action argument—one of three tokens, which instruct the callback function to behave in one of three ways:
This action token instructs the callback function to switch the member process into active mode.
This action token instructs the callback function to switch the member process into inactive mode.
This action token is a hint that Rendezvous fault tolerance software might soon issue an instruction to activate. It instructs the callback function to prepare for possible activation by doing any time-consuming steps that can be done before the actual order to activate.
Remember that the prepare-to-activate hint is exactly that—a hint. Several circumstances might later render activation unnecessary.
 
The names of the tokens vary slightly among the different programming languages.
 
ActionToken enumerates the tokens.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved