package com.style24.batch.biz.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.style24.batch.biz.job.monitoring.TsbHourMonitoringJob;

import lombok.extern.slf4j.Slf4j;

/**
 * 모니터링 Task
 * @author gagamel
 * @since 2020. 11. 16
 */
@Component
@Slf4j
public class TsbMonitoringTask {

	@Autowired
	private TsbHourMonitoringJob hourMonitoringJob;

	/**
	 * 시간 모니터링
	 * @throws
	 * @author gagamel
	 * @since 2020. 11. 16
	 */
	@Scheduled(cron = "${cron.monitoring.hourJob}")
	@Async
	public void runHourMonitoring() throws Exception {
		hourMonitoringJob.run("시간 모니터링 Job");
	}

//	/**
//	 * 일 모니터링
//	 * @throws
//	 * @author gagamel
//	 * @since 2020. 5. 18
//	 */
//	@Scheduled(cron = "${cron.monitoring.dayJob}")
//	@Async
//	public void runDayMonitoring() throws Exception {
//		dayMonitoringJob.run("일 모니터링 Job");
//	}

}
