// Path: ace-admin/src/main/java/wiki/chenxun/ace/admin/entity/ApplicationInfo.java
// @Data
// public class ApplicationInfo {
// 
//     private String name;
// 
//     private String ip;
// 
//     private String port;
// }
// 
// Path: ace-admin/src/main/java/wiki/chenxun/ace/admin/entity/Page.java
// @Data
// public class Page<T> {
// 
//     private long total;
// 
//     private List<T> rows;
// 
// }
// 
// Path: ace-core/src/main/java/wiki/chenxun/ace/core/base/common/AceApplicationConfig.java
// @Data
// @ConfigBean(AceApplicationConfig.PREFIX)
// public class AceApplicationConfig {
// 
// 
//     public static final String PREFIX = "ace.application";
// 
//     private String name;
// 
//     private String dispatch;
// 
//     private String server;
// 
//     private String packages ="wiki.chenxun.ace.core";
// 
//     private String container;
// 
//     private String register;
// 
// }


import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.ZooKeeper;
import org.apache.zookeeper.data.Stat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import wiki.chenxun.ace.admin.entity.ApplicationInfo;
import wiki.chenxun.ace.admin.entity.Page;
import wiki.chenxun.ace.admin.service.ZookeeperManageService;
import wiki.chenxun.ace.core.base.annotations.AceService;
import wiki.chenxun.ace.core.base.annotations.Get;
import wiki.chenxun.ace.core.base.common.AceApplicationConfig;
import wiki.chenxun.ace.core.base.config.Config;
import wiki.chenxun.ace.core.base.register.RegisterConfig;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
package wiki.chenxun.ace.admin.service.impl;



/**
 * @Description: Created by chenxun on 2017/4/23.
 */
@AceService(path = "/zookeeper/manage")
@Component
public class ZookeeperManageServiceImpl implements ZookeeperManageService {

    @Autowired
    private RegisterConfig registerConfig;


    @Get
    @Override
// Path: ace-admin/src/main/java/wiki/chenxun/ace/admin/entity/ApplicationInfo.java
// @Data
// public class ApplicationInfo {
// 
//     private String name;
// 
//     private String ip;
// 
//     private String port;
// }
// 
// Path: ace-admin/src/main/java/wiki/chenxun/ace/admin/entity/Page.java
// @Data
// public class Page<T> {
// 
//     private long total;
// 
//     private List<T> rows;
// 
// }
// 
// Path: ace-core/src/main/java/wiki/chenxun/ace/core/base/common/AceApplicationConfig.java
// @Data
// @ConfigBean(AceApplicationConfig.PREFIX)
// public class AceApplicationConfig {
// 
// 
//     public static final String PREFIX = "ace.application";
// 
//     private String name;
// 
//     private String dispatch;
// 
//     private String server;
// 
//     private String packages ="wiki.chenxun.ace.core";
// 
//     private String container;
// 
//     private String register;
// 
// }


// Path: ace-admin/src/main/java/wiki/chenxun/ace/admin/service/impl/ZookeeperManageServiceImpl.java
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.ZooKeeper;
import org.apache.zookeeper.data.Stat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import wiki.chenxun.ace.admin.entity.ApplicationInfo;
import wiki.chenxun.ace.admin.entity.Page;
import wiki.chenxun.ace.admin.service.ZookeeperManageService;
import wiki.chenxun.ace.core.base.annotations.AceService;
import wiki.chenxun.ace.core.base.annotations.Get;
import wiki.chenxun.ace.core.base.common.AceApplicationConfig;
import wiki.chenxun.ace.core.base.config.Config;
import wiki.chenxun.ace.core.base.register.RegisterConfig;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

package wiki.chenxun.ace.admin.service.impl;



/**
 * @Description: Created by chenxun on 2017/4/23.
 */
@AceService(path = "/zookeeper/manage")
@Component
public class ZookeeperManageServiceImpl implements ZookeeperManageService {

    @Autowired
    private RegisterConfig registerConfig;


    @Get
    @Override
    public Page<ApplicationInfo> queryAllManageNodes() {