Search in sources :

Example 1 with FireWall

use of com.actiontech.dble.config.loader.zkprocess.entity.server.FireWall in project dble by actiontech.

the class ServerzkToxmlLoader method zktoServerBean.

/**
 * zktoServerBean
 *
 * @param zkDirectory
 * @return
 * @Created 2016/9/17
 * @create
 */
private Server zktoServerBean(DirectoryInf zkDirectory) {
    Server server = new Server();
    DataInf serverZkDirectory = this.getZkData(zkDirectory, KVPathUtil.DEFAULT);
    System systemValue = parseJsonSystem.parseJsonToBean(serverZkDirectory.getDataValue());
    server.setSystem(systemValue);
    DataInf firewallZkDirectory = this.getZkData(zkDirectory, KVPathUtil.FIREWALL);
    FireWall fireWall = parseJsonFireWall.parseJsonToBean(firewallZkDirectory.getDataValue());
    server.setFirewall(fireWall);
    DataInf userZkDirectory = this.getZkData(zkDirectory, KVPathUtil.USER);
    List<User> userList = parseJsonUser.parseJsonToBean(userZkDirectory.getDataValue());
    server.setUser(userList);
    return server;
}
Also used : FireWall(com.actiontech.dble.config.loader.zkprocess.entity.server.FireWall) User(com.actiontech.dble.config.loader.zkprocess.entity.server.User) Server(com.actiontech.dble.config.loader.zkprocess.entity.Server) DataInf(com.actiontech.dble.config.loader.zkprocess.zookeeper.DataInf) System(com.actiontech.dble.config.loader.zkprocess.entity.server.System)

Aggregations

Server (com.actiontech.dble.config.loader.zkprocess.entity.Server)1 FireWall (com.actiontech.dble.config.loader.zkprocess.entity.server.FireWall)1 System (com.actiontech.dble.config.loader.zkprocess.entity.server.System)1 User (com.actiontech.dble.config.loader.zkprocess.entity.server.User)1 DataInf (com.actiontech.dble.config.loader.zkprocess.zookeeper.DataInf)1