ConfigNode.java 1.34 KB
package com.taobao.pamirs.schedule.zk;

/**
 * 配置信息
 *
 * @author gjavac@gmail.com
 * @since 2012-2-12
 * @version 1.0
 */
public class ConfigNode {

	private String rootPath;

	private String configType;

	private String name;

	private String value;

	public ConfigNode() {

	}

	public ConfigNode(String rootPath, String configType, String name) {
		this.rootPath = rootPath;
		this.configType = configType;
		this.name = name;
	}

	public String getRootPath() {
		return rootPath;
	}

	public void setRootPath(String rootPath) {
		this.rootPath = rootPath;
	}

	public String getConfigType() {
		return configType;
	}

	public void setConfigType(String configType) {
		this.configType = configType;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("配置根目录:").append(rootPath).append("\n");
		buffer.append("配置类型:").append(configType).append("\n");
		buffer.append("任务名称:").append(name).append("\n");
		buffer.append("配置的值:").append(value).append("\n");
		return buffer.toString();
	}
}