feiyu02
2023-10-19 27d341342925f11c19fb7a31da7050f5e9041319
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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
package com.flightfeather.monitor.domain.ds1.entity;
 
import java.util.Date;
import javax.persistence.*;
 
@Table(name = "du_js_t_request_task_setting")
public class RequestTaskSetting {
    @Id
    private Integer id;
 
    private String user;
 
    @Column(name = "update_time")
    private Date updateTime;
 
    private String region;
 
    private String version;
 
    /**
     * 数据爬取开始时间
     */
    @Column(name = "request_start_time")
    private Date requestStartTime;
 
    /**
     * 数据爬取结束时间
     */
    @Column(name = "request_end_time")
    private Date requestEndTime;
 
    /**
     * 在爬取任务开始结束时间内,爬取的频率
     */
    @Column(name = "request_interval_seconds")
    private Integer requestIntervalSeconds;
 
    /**
     * 一次数据爬取任务中,按总时长分段执行的每段时间长度
     */
    @Column(name = "request_range_hour")
    private Integer requestRangeHour;
 
    /**
     * 一次数据爬取任务中,分段执行时的每段的间隔时间
     */
    @Column(name = "request_range_interval_seconds")
    private Integer requestRangeIntervalSeconds;
 
    /**
     * 爬取任务异常时再次尝试间隔
     */
    @Column(name = "request_fail_wait_seconds")
    private Integer requestFailWaitSeconds;
 
    /**
     * 爬取失败时再次尝试的总次数
     */
    @Column(name = "request_retry_times")
    private Integer requestRetryTimes;
 
    @Column(name = "statics_daily_time")
    private Date staticsDailyTime;
 
    @Column(name = "statics_monthly_time")
    private Date staticsMonthlyTime;
 
    /**
     * 单次登陆失败重新尝试等待时间
     */
    @Column(name = "login_fail_wait_seconds")
    private Integer loginFailWaitSeconds;
 
    /**
     * 登陆失败连续尝试次数
     */
    @Column(name = "login_retry_times")
    private Integer loginRetryTimes;
 
    /**
     * 整个爬取任务重新开始尝试等待时间
     */
    @Column(name = "task_retry_wait_seconds")
    private Integer taskRetryWaitSeconds;
 
    /**
     * 程序首次执行, 站点数据最新时刻表为空时, 数据获取开始时间相对当日往前偏移的天数
     */
    @Column(name = "first_request_offset_days")
    private Integer firstRequestOffsetDays;
 
    /**
     * cookie有效时长,单位小时
     */
    @Column(name = "request_cookie_valid_duration")
    private Integer requestCookieValidDuration;
 
    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }
 
    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }
 
    /**
     * @return user
     */
    public String getUser() {
        return user;
    }
 
    /**
     * @param user
     */
    public void setUser(String user) {
        this.user = user == null ? null : user.trim();
    }
 
    /**
     * @return update_time
     */
    public Date getUpdateTime() {
        return updateTime;
    }
 
    /**
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
 
    /**
     * @return region
     */
    public String getRegion() {
        return region;
    }
 
    /**
     * @param region
     */
    public void setRegion(String region) {
        this.region = region == null ? null : region.trim();
    }
 
    /**
     * @return version
     */
    public String getVersion() {
        return version;
    }
 
    /**
     * @param version
     */
    public void setVersion(String version) {
        this.version = version == null ? null : version.trim();
    }
 
    /**
     * 获取数据爬取开始时间
     *
     * @return request_start_time - 数据爬取开始时间
     */
    public Date getRequestStartTime() {
        return requestStartTime;
    }
 
    /**
     * 设置数据爬取开始时间
     *
     * @param requestStartTime 数据爬取开始时间
     */
    public void setRequestStartTime(Date requestStartTime) {
        this.requestStartTime = requestStartTime;
    }
 
    /**
     * 获取数据爬取结束时间
     *
     * @return request_end_time - 数据爬取结束时间
     */
    public Date getRequestEndTime() {
        return requestEndTime;
    }
 
    /**
     * 设置数据爬取结束时间
     *
     * @param requestEndTime 数据爬取结束时间
     */
    public void setRequestEndTime(Date requestEndTime) {
        this.requestEndTime = requestEndTime;
    }
 
    /**
     * 获取在爬取任务开始结束时间内,爬取的频率
     *
     * @return request_interval_seconds - 在爬取任务开始结束时间内,爬取的频率
     */
    public Integer getRequestIntervalSeconds() {
        return requestIntervalSeconds;
    }
 
    /**
     * 设置在爬取任务开始结束时间内,爬取的频率
     *
     * @param requestIntervalSeconds 在爬取任务开始结束时间内,爬取的频率
     */
    public void setRequestIntervalSeconds(Integer requestIntervalSeconds) {
        this.requestIntervalSeconds = requestIntervalSeconds;
    }
 
    /**
     * 获取一次数据爬取任务中,按总时长分段执行的每段时间长度
     *
     * @return request_range_hour - 一次数据爬取任务中,按总时长分段执行的每段时间长度
     */
    public Integer getRequestRangeHour() {
        return requestRangeHour;
    }
 
    /**
     * 设置一次数据爬取任务中,按总时长分段执行的每段时间长度
     *
     * @param requestRangeHour 一次数据爬取任务中,按总时长分段执行的每段时间长度
     */
    public void setRequestRangeHour(Integer requestRangeHour) {
        this.requestRangeHour = requestRangeHour;
    }
 
    /**
     * 获取一次数据爬取任务中,分段执行时的每段的间隔时间
     *
     * @return request_range_interval_seconds - 一次数据爬取任务中,分段执行时的每段的间隔时间
     */
    public Integer getRequestRangeIntervalSeconds() {
        return requestRangeIntervalSeconds;
    }
 
    /**
     * 设置一次数据爬取任务中,分段执行时的每段的间隔时间
     *
     * @param requestRangeIntervalSeconds 一次数据爬取任务中,分段执行时的每段的间隔时间
     */
    public void setRequestRangeIntervalSeconds(Integer requestRangeIntervalSeconds) {
        this.requestRangeIntervalSeconds = requestRangeIntervalSeconds;
    }
 
    /**
     * 获取爬取任务异常时再次尝试间隔
     *
     * @return request_fail_wait_seconds - 爬取任务异常时再次尝试间隔
     */
    public Integer getRequestFailWaitSeconds() {
        return requestFailWaitSeconds;
    }
 
    /**
     * 设置爬取任务异常时再次尝试间隔
     *
     * @param requestFailWaitSeconds 爬取任务异常时再次尝试间隔
     */
    public void setRequestFailWaitSeconds(Integer requestFailWaitSeconds) {
        this.requestFailWaitSeconds = requestFailWaitSeconds;
    }
 
    /**
     * 获取爬取失败时再次尝试的总次数
     *
     * @return request_retry_times - 爬取失败时再次尝试的总次数
     */
    public Integer getRequestRetryTimes() {
        return requestRetryTimes;
    }
 
    /**
     * 设置爬取失败时再次尝试的总次数
     *
     * @param requestRetryTimes 爬取失败时再次尝试的总次数
     */
    public void setRequestRetryTimes(Integer requestRetryTimes) {
        this.requestRetryTimes = requestRetryTimes;
    }
 
    /**
     * @return statics_daily_time
     */
    public Date getStaticsDailyTime() {
        return staticsDailyTime;
    }
 
    /**
     * @param staticsDailyTime
     */
    public void setStaticsDailyTime(Date staticsDailyTime) {
        this.staticsDailyTime = staticsDailyTime;
    }
 
    /**
     * @return statics_monthly_time
     */
    public Date getStaticsMonthlyTime() {
        return staticsMonthlyTime;
    }
 
    /**
     * @param staticsMonthlyTime
     */
    public void setStaticsMonthlyTime(Date staticsMonthlyTime) {
        this.staticsMonthlyTime = staticsMonthlyTime;
    }
 
    /**
     * 获取单次登陆失败重新尝试等待时间
     *
     * @return login_fail_wait_seconds - 单次登陆失败重新尝试等待时间
     */
    public Integer getLoginFailWaitSeconds() {
        return loginFailWaitSeconds;
    }
 
    /**
     * 设置单次登陆失败重新尝试等待时间
     *
     * @param loginFailWaitSeconds 单次登陆失败重新尝试等待时间
     */
    public void setLoginFailWaitSeconds(Integer loginFailWaitSeconds) {
        this.loginFailWaitSeconds = loginFailWaitSeconds;
    }
 
    /**
     * 获取登陆失败连续尝试次数
     *
     * @return login_retry_times - 登陆失败连续尝试次数
     */
    public Integer getLoginRetryTimes() {
        return loginRetryTimes;
    }
 
    /**
     * 设置登陆失败连续尝试次数
     *
     * @param loginRetryTimes 登陆失败连续尝试次数
     */
    public void setLoginRetryTimes(Integer loginRetryTimes) {
        this.loginRetryTimes = loginRetryTimes;
    }
 
    /**
     * 获取整个爬取任务重新开始尝试等待时间
     *
     * @return task_retry_wait_seconds - 整个爬取任务重新开始尝试等待时间
     */
    public Integer getTaskRetryWaitSeconds() {
        return taskRetryWaitSeconds;
    }
 
    /**
     * 设置整个爬取任务重新开始尝试等待时间
     *
     * @param taskRetryWaitSeconds 整个爬取任务重新开始尝试等待时间
     */
    public void setTaskRetryWaitSeconds(Integer taskRetryWaitSeconds) {
        this.taskRetryWaitSeconds = taskRetryWaitSeconds;
    }
 
    /**
     * 获取程序首次执行, 站点数据最新时刻表为空时, 数据获取开始时间相对当日往前偏移的天数
     *
     * @return first_request_offset_days - 程序首次执行, 站点数据最新时刻表为空时, 数据获取开始时间相对当日往前偏移的天数
     */
    public Integer getFirstRequestOffsetDays() {
        return firstRequestOffsetDays;
    }
 
    /**
     * 设置程序首次执行, 站点数据最新时刻表为空时, 数据获取开始时间相对当日往前偏移的天数
     *
     * @param firstRequestOffsetDays 程序首次执行, 站点数据最新时刻表为空时, 数据获取开始时间相对当日往前偏移的天数
     */
    public void setFirstRequestOffsetDays(Integer firstRequestOffsetDays) {
        this.firstRequestOffsetDays = firstRequestOffsetDays;
    }
 
    /**
     * 获取cookie有效时长,单位小时
     *
     * @return request_cookie_valid_duration - cookie有效时长,单位小时
     */
    public Integer getRequestCookieValidDuration() {
        return requestCookieValidDuration;
    }
 
    /**
     * 设置cookie有效时长,单位小时
     *
     * @param requestCookieValidDuration cookie有效时长,单位小时
     */
    public void setRequestCookieValidDuration(Integer requestCookieValidDuration) {
        this.requestCookieValidDuration = requestCookieValidDuration;
    }
}