Subversion Repositories SmartDukaan

Rev

Rev 25721 | Rev 25783 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25721 Rev 25782
Line 6... Line 6...
6
import org.apache.logging.log4j.Logger;
6
import org.apache.logging.log4j.Logger;
7
import org.springframework.beans.factory.annotation.Autowired;
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.scheduling.annotation.Scheduled;
8
import org.springframework.scheduling.annotation.Scheduled;
9
import org.springframework.stereotype.Component;
9
import org.springframework.stereotype.Component;
10
 
10
 
-
 
11
import com.smartdukaan.cron.migrations.RunOnceTasks;
11
import com.smartdukaan.cron.monitored.NagiosMonitorTasks;
12
import com.smartdukaan.cron.monitored.NagiosMonitorTasks;
12
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
13
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
13
 
14
 
14
@Component
15
@Component
15
public class ScheduledSkeleton {
16
public class ScheduledSkeleton {
Line 19... Line 20...
19
	@Autowired
20
	@Autowired
20
	private ScheduledTasks scheduledTasks;
21
	private ScheduledTasks scheduledTasks;
21
 
22
 
22
	@Autowired
23
	@Autowired
23
	private Reconciliation reconciliation;
24
	private Reconciliation reconciliation;
-
 
25
	
-
 
26
	@Autowired
-
 
27
	private RunOnceTasks runOnceTasks;
24
 
28
 
25
	@Autowired
29
	@Autowired
26
	NagiosMonitorTasks nagiosMonitorTasks;
30
	NagiosMonitorTasks nagiosMonitorTasks;
27
 
31
 
28
	@Autowired
32
	@Autowired
Line 32... Line 36...
32
	public void processDailySchemes() throws Exception {
36
	public void processDailySchemes() throws Exception {
33
		scheduledTasks.processScheme(LocalDateTime.now().minusDays(21), LocalDateTime.now(), true);
37
		scheduledTasks.processScheme(LocalDateTime.now().minusDays(21), LocalDateTime.now(), true);
34
	}
38
	}
35
 
39
 
36
	@Scheduled(cron = "0 15 0 * * *")
40
	@Scheduled(cron = "0 15 0 * * *")
37
	public void reconcileRecharge() throws Exception {
41
	public void runOnceTasks() throws Exception {
38
		scheduledTasks.reconcileRecharge();
42
		scheduledTasks.reconcileRecharge();
39
	}
43
	}
-
 
44
	
-
 
45
	@Scheduled(cron = "0 0 8 * * *")
-
 
46
	public void mailDashboardScreenshots() throws Exception {
-
 
47
		runOnceTasks.mailDashboardScreenshots();;
-
 
48
	}
40
 
49
 
41
	@Scheduled(cron = "0 05 0 1,16 * ?")
50
	@Scheduled(cron = "0 05 0 1,16 * ?")
42
	public void processRechargeCashback() throws Throwable {
51
	public void processRechargeCashback() throws Throwable {
43
		scheduledTasks.processRechargeCashback();
52
		scheduledTasks.processRechargeCashback();
44
	}
53
	}