public Hosts(Object hosts){
		this.hosts = new HashMap<String, HostInfo>();
		String name;
		String IP;
		Integer port;
		Object value;
		ArrayList<Object> hostList = (ArrayList<Object>) hosts;
		for (Object host : hostList) {
			name = null;
			IP = null;
			port = null;
			Map<String, Object> hostMap = (Map<String, Object>) host;
			for (Map.Entry<String, Object> entry : hostMap.entrySet()) {
				value = entry.getValue();
				String key = entry.getKey();
				if ("name".equals(key)) {
					name = (String) value;
				} else if ("ip".equals(key)) {
					IP = (String) value;
				} else if ("port".equals(key)) {
					port = (Integer) value;
				}
			}
			this.hosts.put(name, new HostInfo(IP, port));
		}
	}