This provides the ability for users to run a custom code in exactly one process using a LeaderStandBy state model. A typical use case is when one uses CUSTOMIZED ideal state mode where the assignment of partition to nodes needs to change dynamically as the nodes go online/offline. HelixCustomCodeRunner runner = new HelixCustomCodeRunner(manager,ZK_ADDR); runner .invoke(_callback) .on(ChangeType.LIVE_INSTANCE, ChangeType.IdealState) .usingLeaderStandbyModel("someUniqueId") .run()
@author kgopalak
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.