Authored by simba

update

package com.monitor.middleware.redis.task;
import com.monitor.middleware.redis.service.IRedisMonitorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import com.monitor.middleware.redis.service.IRedisMonitorService;
@Component
... ... @@ -14,7 +13,8 @@ public class RedisMonitorTask {
@Autowired
private IRedisMonitorService redisMonitorService;
@Scheduled(fixedRate=20000)
//@Scheduled(fixedRate=20000)
@Scheduled(cron="0 */5 * * * ?")
public void redisMonitor(){
redisMonitorService.redisMonitor();
}
... ...
... ... @@ -4,6 +4,7 @@ import com.monitor.middleware.zookeeper.service.IZkMonitorService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
... ... @@ -17,7 +18,8 @@ public class ZookeeperMonitorTask {
@Autowired
IZkMonitorService zkMonitorService;
//@Scheduled(fixedRate=20000)
// @Scheduled(fixedRate=20000)
@Scheduled(cron="0 */5 * * * ?")
public void zookeeperMonitor() {
zkMonitorService.zookeeperMonitor();
}
... ...