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("]");