Default implementations available @see HelixStateMachineEngine for participant @see RoutingTableProvider for spectator @see GenericHelixController for controller @author kgopalakmanager = HelixManagerFactory.getManagerFor(); ROLE can be participant, spectator or a controller
manager.connect(); manager.addSOMEListener(); manager.start() After start is invoked the subsequent interactions will be via listener onChange callbacks There will be 3 scenarios for onChange callback, which can be determined using NotificationContext.type INIT -> will be invoked the first time the listener is added CALLBACK -> will be invoked due to datachange in the property value FINALIZE -> will be invoked when listener is removed or session expires manager.disconnect()
Default implementations available @see HelixStateMachineEngine for participant @see RoutingTableProvider for spectator @see GenericHelixController for controllermanager = HelixManagerFactory.getManagerFor(); ROLE can be participant, spectator or a controller
manager.connect(); manager.addSOMEListener(); manager.start() After start is invoked the subsequent interactions will be via listener onChange callbacks There will be 3 scenarios for onChange callback, which can be determined using NotificationContext.type INIT -> will be invoked the first time the listener is added CALLBACK -> will be invoked due to datachange in the property value FINALIZE -> will be invoked when listener is removed or session expires manager.disconnect()
|
|
|
|