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:36:31 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 a290cb9  Updated New Modules for Apache Helix (markdown)
a290cb9 is described below

commit a290cb9a6a289cb09bffe080903f26427a805743
Author: Hunter Lee <narendly@gmail.com>
AuthorDate: Tue Feb 4 09:36:24 2020 -0800

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

diff --git a/New-Modules-for-Apache-Helix.md b/New-Modules-for-Apache-Helix.md
index 7395545..a44b8d7 100644
--- a/New-Modules-for-Apache-Helix.md
+++ b/New-Modules-for-Apache-Helix.md
@@ -36,9 +36,13 @@ import org.apache.helix.zookeeper.api.zkclient.ZkServer;
 1. SharedZkClientFactory - one shared ZkClient that has multiple ZkConnections inside it.
Use for CRUD operations.
 2. DedicatedZkClientFactory - one ZkClient with one ZkConnection. The behavior of this is
same as if you used a raw ZkClient.
 
-`    ZkClient client = new ZkClient("localhost:2191", 10000, 10000, new ZNRecordSerializer());
-    HelixZkClient.ZkConnectionConfig zkConnectionConfig =
-        new HelixZkClient.ZkConnectionConfig("localhost:2191")
-            .setSessionTimeout(10000);
-    HelixZkClient client = DedicatedZkClientFactory.getInstance().buildZkClient(zkConnectionConfig,
-        new HelixZkClient.ZkClientConfig().setZkSerializer(new ZNRecordSerializer()));`
\ No newline at end of file
+See the example below:
+`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()));`


Mime
View raw message