File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
km-task/src/main/java/com/xiaojukeji/know/streaming/km/task/health Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .xiaojukeji .know .streaming .km .task .health ;
2+
3+ import com .didiglobal .logi .job .annotation .Task ;
4+ import com .didiglobal .logi .job .core .consensual .ConsensualEnum ;
5+ import com .xiaojukeji .know .streaming .km .core .service .health .checker .AbstractHealthCheckService ;
6+ import com .xiaojukeji .know .streaming .km .core .service .health .checker .zookeeper .HealthCheckZookeeperService ;
7+ import lombok .AllArgsConstructor ;
8+ import lombok .NoArgsConstructor ;
9+ import org .springframework .beans .factory .annotation .Autowired ;
10+
11+
12+ @ NoArgsConstructor
13+ @ AllArgsConstructor
14+ @ Task (name = "ZookeeperHealthCheckTask" ,
15+ description = "Zookeeper健康检查" ,
16+ cron = "0 0/1 * * * ? *" ,
17+ autoRegister = true ,
18+ consensual = ConsensualEnum .BROADCAST ,
19+ timeout = 2 * 60 )
20+ public class ZookeeperHealthCheckTask extends AbstractHealthCheckTask {
21+ @ Autowired
22+ private HealthCheckZookeeperService healthCheckZookeeperService ;
23+
24+ @ Override
25+ public AbstractHealthCheckService getCheckService () {
26+ return healthCheckZookeeperService ;
27+ }
28+ }
You can’t perform that action at this time.
0 commit comments