Subversion Repositories SmartDukaan

Rev

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

Rev 23762 Rev 23767
Line 21... Line 21...
21
	NagiosMonitorTasks nagiosMonitorTasks;
21
	NagiosMonitorTasks nagiosMonitorTasks;
22
 
22
 
23
	@Autowired
23
	@Autowired
24
	RunOnceTasks runOnceTasks;
24
	RunOnceTasks runOnceTasks;
25
 
25
 
26
	@Scheduled(cron = "0 5 0 * * * ")
26
	/*@Scheduled(cron = "0 5 0 * * * ")
27
	public void generateDailyRecharge() {
27
	public void generateDailyRecharge() {
28
		scheduledTasks.generateDailyRecharge();
28
		scheduledTasks.generateDailyRecharge();
29
	}
29
	}*/
30
 
30
 
31
	/*@Scheduled(cron = "0 45 0 * * *")
31
	/*@Scheduled(cron = "0 45 0 * * *")
32
	public void processScheme() throws Exception {
32
	public void processScheme() throws Exception {
33
		scheduledTasks.processScheme();
33
		scheduledTasks.processScheme();
34
	}*/
34
	}*/
Line 44... Line 44...
44
	}
44
	}
45
	
45
	
46
	/*Value so big so that it got to run only once.
46
	/*Value so big so that it got to run only once.
47
	 * 
47
	 * 
48
	 */
48
	 */
49
	/*@Scheduled(fixedRate=Integer.MAX_VALUE)
49
	@Scheduled(fixedDelay=10000)
50
	public void runOnce() throws Throwable
50
	public void migrateLineItems() throws Throwable
51
	{
51
	{
52
		log.info("Started run Once");
52
		log.info("Started run Once");
53
		runOnceTasks.migarateLineItemsToNewTable();
53
		runOnceTasks.migarateLineItemsToNewTable();
54
	}
54
	}
-
 
55
	/*
55
	@Scheduled(fixedRate=Integer.MAX_VALUE)
56
	@Scheduled(fixedRate=Integer.MAX_VALUE)
56
	public void runTwice() throws Throwable
57
	public void runTwice() throws Throwable
57
	{
58
	{
58
		log.info("Started run Twice");
59
		log.info("Started run Twice");
59
		scheduledTasks.reconcileRecharge();
60
		scheduledTasks.reconcileRecharge();