|
|
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();
|
|
|
}
|
...
|
...
|
|