Subversion Repositories SmartDukaan

Rev

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

Rev 23866 Rev 23929
Line 4... Line 4...
4
import org.apache.logging.log4j.Logger;
4
import org.apache.logging.log4j.Logger;
5
import org.springframework.beans.factory.annotation.Autowired;
5
import org.springframework.beans.factory.annotation.Autowired;
6
import org.springframework.scheduling.annotation.Scheduled;
6
import org.springframework.scheduling.annotation.Scheduled;
7
import org.springframework.stereotype.Component;
7
import org.springframework.stereotype.Component;
8
 
8
 
9
import com.smartdukaan.cron.migrations.RunOnceTasks;
-
 
10
import com.smartdukaan.cron.monitored.NagiosMonitorTasks;
9
import com.smartdukaan.cron.monitored.NagiosMonitorTasks;
11
 
10
 
12
@Component
11
@Component
13
public class ScheduledSkeleton {
12
public class ScheduledSkeleton {
14
 
13
 
Line 18... Line 17...
18
	ScheduledTasks scheduledTasks;
17
	ScheduledTasks scheduledTasks;
19
 
18
 
20
	@Autowired
19
	@Autowired
21
	NagiosMonitorTasks nagiosMonitorTasks;
20
	NagiosMonitorTasks nagiosMonitorTasks;
22
 
21
 
23
	@Autowired
-
 
24
	RunOnceTasks runOnceTasks;
-
 
25
 
-
 
26
	@Scheduled(cron = "0 15 0 * * *")
22
	@Scheduled(cron = "0 15 0 * * *")
27
	public void reconcileRecharge() throws Exception {
23
	public void reconcileRecharge() throws Exception {
28
		scheduledTasks.reconcileRecharge();
24
		scheduledTasks.reconcileRecharge();
29
	}
25
	}
30
 
26
 
Line 35... Line 31...
35
 
31
 
36
	/*
32
	/*
37
	 * Value so big so that it got to run only once.
33
	 * Value so big so that it got to run only once.
38
	 * 
34
	 * 
39
	 */
35
	 */
-
 
36
 
40
	@Scheduled(cron = "0 0 17 5 7 ?")
37
	@Scheduled(cron = "0 0 9 * * *")
41
	public void migrateLineItems() throws Throwable {
38
	public void migrateLineItems() throws Throwable {
42
		log.info("Started run Once");
39
		log.info("Started run Once");
43
		runOnceTasks.migarateLineItemsToNewTable();
40
		scheduledTasks.sendPartnerInvestmentDetails();
44
	}
41
	}
45
}
42
}