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;
}
Aggregations