You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by jx...@apache.org on 2020/11/11 23:21:25 UTC
[helix] branch master updated: fixed bug #1517: Controller tutorial
doc page leads to compilation errors (#1528)
This is an automated email from the ASF dual-hosted git repository.
jxue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.git
The following commit(s) were added to refs/heads/master by this push:
new a8e999e fixed bug #1517: Controller tutorial doc page leads to compilation errors (#1528)
a8e999e is described below
commit a8e999eb399dfd5b72c2e66bde34097044c05597
Author: bfreuden <br...@orange.fr>
AuthorDate: Thu Nov 12 00:12:47 2020 +0100
fixed bug #1517: Controller tutorial doc page leads to compilation errors (#1528)
Co-authored-by: Bruno Freudensprung <br...@kairntech.com>
---
website/0.9.8/src/site/markdown/tutorial_controller.md | 7 ++++---
website/1.0.1/src/site/markdown/tutorial_controller.md | 8 +++++---
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/website/0.9.8/src/site/markdown/tutorial_controller.md b/website/0.9.8/src/site/markdown/tutorial_controller.md
index d3c5526..04a89a3 100644
--- a/website/0.9.8/src/site/markdown/tutorial_controller.md
+++ b/website/0.9.8/src/site/markdown/tutorial_controller.md
@@ -119,11 +119,12 @@ If you need additional functionality, see GenericHelixController on how to confi
zkConnectString);
manager.connect();
GenericHelixController controller = new GenericHelixController();
- manager.addConfigChangeListener(controller);
+ manager.addControllerListener(controller);
+ manager.addInstanceConfigChangeListener(controller);
+ manager.addResourceConfigChangeListener(controller);
+ manager.addClusterfigChangeListener(controller);
manager.addLiveInstanceChangeListener(controller);
manager.addIdealStateChangeListener(controller);
- manager.addExternalViewChangeListener(controller);
- manager.addControllerListener(controller);
```
The snippet above shows how the controller is started. You can also start the controller using command line interface.
diff --git a/website/1.0.1/src/site/markdown/tutorial_controller.md b/website/1.0.1/src/site/markdown/tutorial_controller.md
index d3c5526..50cb951 100644
--- a/website/1.0.1/src/site/markdown/tutorial_controller.md
+++ b/website/1.0.1/src/site/markdown/tutorial_controller.md
@@ -119,11 +119,13 @@ If you need additional functionality, see GenericHelixController on how to confi
zkConnectString);
manager.connect();
GenericHelixController controller = new GenericHelixController();
- manager.addConfigChangeListener(controller);
+ manager.addControllerListener(controller);
+ manager.addInstanceConfigChangeListener(controller);
+ manager.addResourceConfigChangeListener(controller);
+ manager.addClusterfigChangeListener(controller);
+ manager.addCustomizedStateConfigChangeListener(controller);
manager.addLiveInstanceChangeListener(controller);
manager.addIdealStateChangeListener(controller);
- manager.addExternalViewChangeListener(controller);
- manager.addControllerListener(controller);
```
The snippet above shows how the controller is started. You can also start the controller using command line interface.