TaskTrackerCfg.java
2.33 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
package com.github.ltsopensource.startup.tasktracker;
import com.github.ltsopensource.core.constant.Level;
import java.util.Map;
/**
* TaskTracker 配置文件
*
* @author Robert HG (254963746@qq.com) on 9/1/15.
*/
@SuppressWarnings("rawtypes")
public class TaskTrackerCfg {
private String registryAddress;
private String clusterName;
private Level bizLoggerLevel;
private String nodeGroup;
private int workThreads;
private Class jobRunnerClass;
private String dataPath;
private boolean useSpring = false;
private String[] springXmlPaths;
private Map<String, String> configs;
public String getRegistryAddress() {
return registryAddress;
}
public void setRegistryAddress(String registryAddress) {
this.registryAddress = registryAddress;
}
public String getClusterName() {
return clusterName;
}
public void setClusterName(String clusterName) {
this.clusterName = clusterName;
}
public Map<String, String> getConfigs() {
return configs;
}
public void setConfigs(Map<String, String> configs) {
this.configs = configs;
}
public Level getBizLoggerLevel() {
return bizLoggerLevel;
}
public void setBizLoggerLevel(Level bizLoggerLevel) {
this.bizLoggerLevel = bizLoggerLevel;
}
public String getNodeGroup() {
return nodeGroup;
}
public void setNodeGroup(String nodeGroup) {
this.nodeGroup = nodeGroup;
}
public int getWorkThreads() {
return workThreads;
}
public void setWorkThreads(int workThreads) {
this.workThreads = workThreads;
}
public boolean isUseSpring() {
return useSpring;
}
public void setUseSpring(boolean useSpring) {
this.useSpring = useSpring;
}
public String getDataPath() {
return dataPath;
}
public void setDataPath(String dataPath) {
this.dataPath = dataPath;
}
public Class getJobRunnerClass() {
return jobRunnerClass;
}
public void setJobRunnerClass(Class jobRunnerClass) {
this.jobRunnerClass = jobRunnerClass;
}
public String[] getSpringXmlPaths() {
return springXmlPaths;
}
public void setSpringXmlPaths(String[] springXmlPaths) {
this.springXmlPaths = springXmlPaths;
}
}