You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by ka...@apache.org on 2014/02/20 23:28:48 UTC

git commit: [HELIX-383] Fix Javadoc for HelixManager usage

Repository: helix
Updated Branches:
  refs/heads/master 51329f6f0 -> 0beb0d9f3


[HELIX-383] Fix Javadoc for HelixManager usage


Project: http://git-wip-us.apache.org/repos/asf/helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/0beb0d9f
Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/0beb0d9f
Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/0beb0d9f

Branch: refs/heads/master
Commit: 0beb0d9f34b3d96b98955aa47519bb5e7b37d4c9
Parents: 51329f6
Author: Kanak Biscuitwala <ka...@apache.org>
Authored: Thu Feb 20 14:03:20 2014 -0800
Committer: Kanak Biscuitwala <ka...@apache.org>
Committed: Thu Feb 20 14:28:24 2014 -0800

----------------------------------------------------------------------
 helix-core/src/main/java/org/apache/helix/HelixManager.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/helix/blob/0beb0d9f/helix-core/src/main/java/org/apache/helix/HelixManager.java
----------------------------------------------------------------------
diff --git a/helix-core/src/main/java/org/apache/helix/HelixManager.java b/helix-core/src/main/java/org/apache/helix/HelixManager.java
index 54e9943..7c34b00 100644
--- a/helix-core/src/main/java/org/apache/helix/HelixManager.java
+++ b/helix-core/src/main/java/org/apache/helix/HelixManager.java
@@ -39,10 +39,11 @@ import org.apache.helix.store.zk.ZkHelixPropertyStore;
  * manager = HelixManagerFactory.getZKHelixManager(
  *    clusterName, instanceName, ROLE, zkAddr);
  *    // ROLE can be participant, spectator or a controller<br/>
+ * manager.addPreConnectCallback(cb);
+ *    // cb is invoked after a connection is established, but before the node of type ROLE has
+ *    // joined the cluster. This is where one can add additional listeners (e.g manager.addSOMEListener(listener);)
  * manager.connect();
- * manager.addSOMEListener();
- * manager.start()
- * After start is invoked the subsequent interactions will be via listener onChange callbacks
+ * After connect 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