Package org.apache.helix.manager.zk

Examples of org.apache.helix.manager.zk.ZkCallbackHandler


  public static void printHandlers(HelixManager manager, List<ZkCallbackHandler> handlers) {
    StringBuilder sb = new StringBuilder();
    sb.append(manager.getInstanceName() + " has " + handlers.size() + " cb-handlers. [\n");

    for (int i = 0; i < handlers.size(); i++) {
      ZkCallbackHandler handler = handlers.get(i);
      String path = handler.getPath();
      sb.append(path.substring(manager.getClusterName().length() + 1) + ": "
          + handler.getListener());
      if (i < (handlers.size() - 1)) {
        sb.append("\n");
      }
    }
    sb.append("]");
View Full Code Here

TOP

Related Classes of org.apache.helix.manager.zk.ZkCallbackHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.