helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hu...@apache.org
Subject [helix.wiki] branch master updated: Updated New Modules for Apache Helix (markdown)
Date Tue, 04 Feb 2020 17:37:49 GMT
This is an automated email from the ASF dual-hosted git repository.

hulee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.wiki.git


The following commit(s) were added to refs/heads/master by this push:
     new aaa4160  Updated New Modules for Apache Helix (markdown)
aaa4160 is described below

commit aaa4160275e9225ee15496ee9da2f8621115bb39
Author: Hunter Lee <narendly@gmail.com>
AuthorDate: Tue Feb 4 09:37:42 2020 -0800

    Updated New Modules for Apache Helix (markdown)
---
 New-Modules-for-Apache-Helix.md | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/New-Modules-for-Apache-Helix.md b/New-Modules-for-Apache-Helix.md
index a44b8d7..c7212a9 100644
--- a/New-Modules-for-Apache-Helix.md
+++ b/New-Modules-for-Apache-Helix.md
@@ -37,12 +37,11 @@ import org.apache.helix.zookeeper.api.zkclient.ZkServer;
 2. DedicatedZkClientFactory - one ZkClient with one ZkConnection. The behavior of this is
same as if you used a raw ZkClient.
 
 See the example below:
-`ZkClient client = new ZkClient("localhost:2191", 10000, 10000, new ZNRecordSerializer());`
+> ZkClient client = new ZkClient("localhost:2191", 10000, 10000, new ZNRecordSerializer());
 
 becomes
 
-`    HelixZkClient.ZkConnectionConfig zkConnectionConfig =`
-        `new HelixZkClient.ZkConnectionConfig("localhost:2191")`
-            `.setSessionTimeout(10000);`
-    `HelixZkClient client = DedicatedZkClientFactory.getInstance().buildZkClient(zkConnectionConfig,`
-        `new HelixZkClient.ZkClientConfig().setZkSerializer(new ZNRecordSerializer()));`
+> HelixZkClient.ZkConnectionConfig zkConnectionConfig = new HelixZkClient.ZkConnectionConfig("localhost:2191").setSessionTimeout(10000);
+> HelixZkClient client = DedicatedZkClientFactory.getInstance().buildZkClient(zkConnectionConfig,
new HelixZkClient.ZkClientConfig().setZkSerializer(new ZNRecordSerializer()));
+
+Note that HelixZkClient is a fully-compatible interface with I0Itec's ZkClient.


Mime
View raw message