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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
|
package com.nis.util;
import java.util.Date;
public final class Constants {
public static final String DEFAULT_CAPTCHA_PARAM = "captcha";
public static final String DEFAULT_MOBILE_PARAM = "mobileLogin";
public static final String DEFAULT_MESSAGE_PARAM = "message";
/**
* 词典数据key
*/
public static final String CACHE_DICT_MAP = "dictMap";
/**
* 上传文件基础虚拟路径
*/
public static final String USERFILES_BASE_URL = "/userfiles/";
public static final String HASH_ALGORITHM = "SHA-1";
public static final int HASH_INTERATIONS = 1024;
public static final int SALT_SIZE = 8;
public static final int LOG_ACCESS_SUCCESS = 1;
public static final int LOG_ACCESS_EXCEPTION = 0;
/**
* 默认未知方法(未添加词典或未识别)操作类型值为:unknown(8000)
*/
public static final int DEFAULT_METHOD_TYPE = 8000;
public static final String SYS_BUSINESS_MENU_NAME = "信访管理";
public static final String LABEL_DEFAULT = "label";
public static final String LABEL_SUCCESS = "label label-success";
public static final String LABEL_WARNING = "label label-warning";
public static final String LABEL_IMPORTANT = "label label-important";
public static final String LABEL_INFO = "label label-info";
public static final String LABEL_INVERSE = "label label-inverse";
/**
* 生效系统
*/
public static final String ACTIVESYS_A = "4";
public static final String ACTIVESYS_B = "2";
public static final String ACTIVESYS_C = "1";
public static final String ACTIVESYS_ALL = "7";
//A+B版
public static final String ACTIVESYS_AB = "6";
/**
* 数据库操作
*/
public static final String INSERT = "I";
public static final String UPDATE = "U";
public static final String DELETE = "D";
/**
* 接口的操作行为opAction
*/
public static final int OPACTION_POST = 1;
public static final int OPACTION_PUT = 2;
public static final int OPACTION_DELETE = 3;
public static final int OPACTION_GET = 4;
public static final int OPACTION_PATCH = 5;
/**
* 是/否
*/
public static final String YES = "1";
public static final String NO = "0";
/**
* 每页最大显示数
*/
public static final int MAX_PAGE_SIZE = Configurations.getIntProperty("maxPageSize", 100000);
/**
* 对/错
*/
public static final String TRUE = "true";
public static final String FALSE = "false";
/**
* 服务器ip
*/
public static String SERVCER_HOST = null;
/**
* oracle redis数据 存储时间
*/
public static final int ORACLE_EXPIRE = Configurations.getIntProperty("oracleExpire", 180);
/**
* hive redis数据 存储时间
*/
public static final int HIVE_EXPIRE = Configurations.getIntProperty("hiveExpire", 180);
/**
* redis开关
*/
public static final boolean IS_OPEN_REDIS = Configurations.getBooleanProperty("isOpenRedis", false);
/**
* es开关
*/
public static final boolean IS_USE_ES = Configurations.getBooleanProperty("isUseES", false);
/**
* 数据中心日志redis开关
*/
public static final boolean DATACENTER_OPEN_REDIS = Configurations.getBooleanProperty("dataCenterOpenRedis", false);
/**
* 是否使用use soq_log命令
*/
// public static final boolean IS_USE_HIVE_DB =
// Configurations.getBooleanProperty("isUseHiveDb", true);
/**
* 是否获取数据中心查询记录的总条数
*/
public static final boolean IS_GET_HIVECOUNT = Configurations.getBooleanProperty("isGetHiveCount", true);
/**
* 是否获取数据中心[神通]查询记录的总条数
*/
public static final boolean IS_SELECT_CLUSTER = Configurations.getBooleanProperty("isSelectCluster", false);
/**
* 神通数据库A的数据最早时间
*/
public static final Long CLUSTER_A_START_TIME = Configurations.getLongProperty("clusterAStartTime", new Date().getTime());
/**
* 神通数据库B的数据最早时间
*/
public static final Long CLUSTER_B_START_TIME = Configurations.getLongProperty("clusterBStartTime", new Date().getTime());
/**
* 每次获取数据中心多少条数据,咱们在对获取的数据进行分页处理
*/
public static final Long EVERY_GETHIVEDATANUM = Configurations.getLongProperty("everyGetHiveDataNum", 10000);
/**
* 是否开启基础校验
*/
public static final boolean BASE_VALIDATE = Configurations.getBooleanProperty("baseValidate", true);
public static final Long DATACENTER_TIME = Configurations.getLongProperty("dataCenterTime", 48);
/**
* 是否开启业务校验
*/
public static final boolean SERVICE_VALIDATE = Configurations.getBooleanProperty("serviceValidate", true);
/**
* 是否开启Debug模式
*/
public static final boolean IS_DEBUG = Configurations.getBooleanProperty("isDebug", true);
/**
* 日志本地存储时间
*/
public static final Long LOG_LOCAL_TIME = Configurations.getLongProperty("logLocalTime", 48);
/**
* 实时统计默认时间
*/
public static final Long REPORT_LOCAL_TIME = Configurations.getLongProperty("reportLocalTime", 1);
/**
* 实时报表统计默认时间,单位分钟
*/
public static final Long PZ_REPORT_TIME = Configurations.getLongProperty("pzReportTime", 5);
/**
* 日志是否从hive中查询
*/
public static final boolean SEL_FROM_HIVE = Configurations.getBooleanProperty("selFromHive", true);
public static final boolean ONLY_SEL_FROM_HIVE = Configurations.getBooleanProperty("onlySelFromHive", true);
/**
* 跨域问题解决,允许跨域的url
*/
public static final String TARGET_URL = Configurations.getStringProperty("target_url", "*");
public static final String ACCESS_CONTROL_MAX_AGE = Configurations.getStringProperty("ACCESS_CONTROL_MAX_AGE",
"3600");
/**
* elasticsearch 检索相关
*/
public static final String SEARCH_DATEFORMAT = Configurations.getStringProperty("search.dateformat",
"yyyy-MM-dd HH:mm:ss");
public static final String SEARCH_ES_HOSTANDPORT_A = Configurations.getStringProperty("search.eshostandport_A",
null);
public static final String SEARCH_ES_HOSTANDPORT_B = Configurations.getStringProperty("search.eshostandport_B",
null);
public static final String SEARCH_ES_HOSTANDPORT_C = Configurations.getStringProperty("search.eshostandport_C",
null);
/**
* 数据中心数据库名称,程序中每次查询时使用的数据库名称 use HIVEDBNAME
*/
public static final String HIVEDBNAME = Configurations.getStringProperty("jdbc.hive.DBName", "maat");
/**
* clickhouse数据库名称
*/
public static final String CLICKHOUSEDBNAME = Configurations.getStringProperty("jdbc.clickHouse.DBName", "k18_ods");
/**
* 日志查询是否使用clickhouse,否则使用hive
*/
public static final Boolean ISUSECLICKHOUSE = Configurations.getBooleanProperty("isUseClickHouse", true);
/**
* 是否开启日志查询count和last功能
*/
public static final Boolean ISOPENLOGCOUNTANDLAST = Configurations.getBooleanProperty("isOpenLogCountAndLast", true);
public static final String DIGEST_GEN_TOOL_PATH = Configurations.getStringProperty("digest.gen.tool.path", "maat-redis/digest_gen");
/**
* 样例文件存放目录
*/
public static final String MM_SAMPLE_DST_PATH = Configurations.getStringProperty("mmSampleDstPath", "/home/mesasoft/{tableType}/full/{fileName}");
/**
* ip定位库
*/
public static final String IPLOCATIONLIBRARYPATH = Configurations.getStringProperty("ipLocationLibraryPath", "/usr/local/ipLocalLibraay/Kazakhstan.mmdb");
/**
*是否使用Minio
*/
public static final Boolean IS_USE_MINIO = Configurations.getBooleanProperty("isUseMinio", true);
/**
* 保存请求内容时,最大的资源列表size
*/
public static final int MAX_LIST_SIZE = Configurations.getIntProperty("maxListSize", 10);
/**
* redis分布式锁超时时间,默认五分钟,300秒
*/
public static final Long REDISLOCKTIME=Configurations.getLongProperty("redisLockTime", 300);
/**
* 全量数据同步分布式锁时间,默认两个小时
*/
public static final Long CONFIGSYNCLOCKTIME=Configurations.getLongProperty("configSyncLockTime", 7200);
/**
* 获取redis分布式锁失败后的尝试获取锁的次数,每次失败暂停一秒钟后再次尝试
*/
public static final Long REDISRETRYNUM=Configurations.getLongProperty("redisRetryNum", 5);
//阀门库db
public static final int TAPREDISDB = Configurations.getIntProperty("tapRedisDb", 5);
//webfocus库db
public static final int WEBFOCUSREDISDB = Configurations.getIntProperty("webFocusDb", 7);
//
public static final int TREND_TIME_INTERVAL = Configurations.getIntProperty("traffic.trend.timeInterval", 5);
}
|