SystemRunner.java
566 Bytes
package vion.cron;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import vion.service.monitor.IAgentService;
/**
* 系统级事件监控
*/
@Component
@Slf4j
@RequiredArgsConstructor
public class SystemRunner {
private final IAgentService agentService;
// @Scheduled(cron = "0 0 9 * * ?")
public void checkLicense() {
log.info("监测授权文件到期日开始");
agentService.checkLicense();
log.info("监测授权文件到期日结束");
}
}