helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ka...@apache.org
Subject [1/2] git commit: [HELIX-382] GenericHelixController now implements InstanceConfigChangeListener, ConfigChangeListener delegates call to InstanceConfigChangeListener
Date Sun, 16 Feb 2014 19:34:24 GMT
Repository: helix
Updated Branches:
  refs/heads/helix-0.6.2-release 4e881378c -> fc1512305


[HELIX-382] GenericHelixController now implements InstanceConfigChangeListener, ConfigChangeListener
delegates call to InstanceConfigChangeListener


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

Branch: refs/heads/helix-0.6.2-release
Commit: c3ccd0635d22728f48231b6c613ba27dade0995d
Parents: c924280
Author: Kanak Biscuitwala <kanak.b@hotmail.com>
Authored: Sun Feb 16 11:32:34 2014 -0800
Committer: Kanak Biscuitwala <kanak.b@hotmail.com>
Committed: Sun Feb 16 11:32:34 2014 -0800

----------------------------------------------------------------------
 .../apache/helix/controller/GenericHelixController.java | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/helix/blob/c3ccd063/helix-core/src/main/java/org/apache/helix/controller/GenericHelixController.java
----------------------------------------------------------------------
diff --git a/helix-core/src/main/java/org/apache/helix/controller/GenericHelixController.java
b/helix-core/src/main/java/org/apache/helix/controller/GenericHelixController.java
index 7e28399..a606b26 100644
--- a/helix-core/src/main/java/org/apache/helix/controller/GenericHelixController.java
+++ b/helix-core/src/main/java/org/apache/helix/controller/GenericHelixController.java
@@ -37,6 +37,7 @@ import org.apache.helix.HealthStateChangeListener;
 import org.apache.helix.HelixDataAccessor;
 import org.apache.helix.HelixManager;
 import org.apache.helix.IdealStateChangeListener;
+import org.apache.helix.InstanceConfigChangeListener;
 import org.apache.helix.LiveInstanceChangeListener;
 import org.apache.helix.MessageListener;
 import org.apache.helix.NotificationContext;
@@ -86,7 +87,8 @@ import org.apache.log4j.Logger;
  */
 public class GenericHelixController implements ConfigChangeListener, IdealStateChangeListener,
     LiveInstanceChangeListener, MessageListener, CurrentStateChangeListener,
-    ExternalViewChangeListener, ControllerChangeListener, HealthStateChangeListener {
+    ExternalViewChangeListener, ControllerChangeListener, HealthStateChangeListener,
+    InstanceConfigChangeListener{
   private static final Logger logger = Logger.getLogger(GenericHelixController.class.getName());
   volatile boolean init = false;
   private final PipelineRegistry _registry;
@@ -434,6 +436,14 @@ public class GenericHelixController implements ConfigChangeListener,
IdealStateC
   }
 
   @Override
+  public void onInstanceConfigChange(List<InstanceConfig> instanceConfigs,
+      NotificationContext changeContext){
+    logger.info("START: GenericClusterController.onInstanceConfigChange()");
+    onConfigChange(instanceConfigs, changeContext);
+    logger.info("END: GenericClusterController.onInstanceConfigChange()");
+  }
+
+  @Override
   public void onControllerChange(NotificationContext changeContext) {
     logger.info("START: GenericClusterController.onControllerChange()");
     if (changeContext != null && changeContext.getType() == Type.FINALIZE) {


Mime
View raw message