ConfigNode.java
1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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();
}
}