Subversion Repositories SmartDukaan

Rev

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

Rev 24784 Rev 24841
Line 24... Line 24...
24
 
24
 
25
	private static final Logger log = LogManager.getLogger(ScheduledSkeleton.class);
25
	private static final Logger log = LogManager.getLogger(ScheduledSkeleton.class);
26
 
26
 
27
	@Autowired
27
	@Autowired
28
	private ScheduledTasks scheduledTasks;
28
	private ScheduledTasks scheduledTasks;
29
	
29
 
30
	@Autowired
30
	@Autowired
31
	private Reconciliation reconciliation;
31
	private Reconciliation reconciliation;
32
 
32
 
33
	@Autowired
33
	@Autowired
34
	NagiosMonitorTasks nagiosMonitorTasks;
34
	NagiosMonitorTasks nagiosMonitorTasks;
35
 
35
 
36
	@Autowired
36
	@Autowired
37
	private FofoStoreRepository fofoStoreRepository;
37
	private FofoStoreRepository fofoStoreRepository;
38
 
38
 
-
 
39
	@Autowired
-
 
40
	private TicketRelatedScheduledTask ticketRelatedScheduledTask;
-
 
41
 
39
	@Scheduled(cron = "0 0 2 * * *")
42
	@Scheduled(cron = "0 0 2 * * *")
40
	public void processDailySchemes() throws Exception {
43
	public void processDailySchemes() throws Exception {
41
		scheduledTasks.processScheme(LocalDateTime.now().minusDays(21), LocalDateTime.now());
44
		scheduledTasks.processScheme(LocalDateTime.now().minusDays(21), LocalDateTime.now());
42
	}
45
	}
43
	
46
 
44
	@Scheduled(cron = "0 15 0 * * *")
47
	@Scheduled(cron = "0 15 0 * * *")
45
	public void reconcileRecharge() throws Exception {
48
	public void reconcileRecharge() throws Exception {
46
		scheduledTasks.reconcileRecharge();
49
		scheduledTasks.reconcileRecharge();
47
	}
50
	}
48
 
51
 
Line 53... Line 56...
53
 
56
 
54
	@Scheduled(cron = "0 0 1 * * *")
57
	@Scheduled(cron = "0 0 1 * * *")
55
	public void sendPartnerInvestmentDetails() throws Throwable {
58
	public void sendPartnerInvestmentDetails() throws Throwable {
56
		scheduledTasks.sendPartnerInvestmentDetails();
59
		scheduledTasks.sendPartnerInvestmentDetails();
57
	}
60
	}
58
	
61
 
59
	@Scheduled(cron = "0 0 8 * * *")
62
	@Scheduled(cron = "0 0 8 * * *")
60
	public void sendStockAgeingReport() throws Throwable {
63
	public void sendStockAgeingReport() throws Throwable {
61
		scheduledTasks.sendAgeingReport();
64
		scheduledTasks.sendAgeingReport();
62
	}
65
	}
63
 
66
 
Line 77... Line 80...
77
			EncryptedDocumentException, InvalidFormatException {
80
			EncryptedDocumentException, InvalidFormatException {
78
		log.info("sending mail To Partner");
81
		log.info("sending mail To Partner");
79
 
82
 
80
		scheduledTasks.sendMailToPartnerAboutTargetAndSales();
83
		scheduledTasks.sendMailToPartnerAboutTargetAndSales();
81
	}
84
	}
-
 
85
 
82
	@Scheduled(cron="0 0/30 * * * *")
86
	@Scheduled(cron = "0 0/30 * * * *")
83
	public void escalateTicket() throws ProfitMandiBusinessException
87
	public void escalateTicket() throws ProfitMandiBusinessException {
84
	{
-
 
85
		log.info("escalate ticket");
88
		log.info("escalate ticket");
86
		scheduledTasks.escalateTicket();
89
		ticketRelatedScheduledTask.escalateTicket();
87
	}
90
	}
-
 
91
 
88
	@Scheduled(cron="0 0 11 * * *")
92
	@Scheduled(cron = "0 0 11 * * *")
89
	public void alertTicketToUser() throws Exception
93
	public void alertTicketToUser() throws Exception {
90
	{
-
 
91
		log.info("alert for ticket");
94
		log.info("alert for ticket");
92
		scheduledTasks.alertforTicket();
95
		ticketRelatedScheduledTask.alertforTicket();
93
	}
96
	}
-
 
97
 
94
	@Scheduled(cron="0 0 15,17,19,23 ? * *")
98
	@Scheduled(cron = "0 0 15,17,19,23 ? * *")
95
	public void dailySaleNotification() throws Exception
99
	public void dailySaleNotification() throws Exception {
96
	{
-
 
97
		log.info("daily send Notification");
100
		log.info("daily send Notification");
98
		scheduledTasks.sendDailySalesReportNotificationToPartner();
101
		scheduledTasks.sendDailySalesReportNotificationToPartner();
99
	}
102
	}
-
 
103
 
100
	@Scheduled(cron="0 0 6 * * *")
104
	@Scheduled(cron = "0 0 6 * * *")
101
	public void dailyReconciliation() throws Exception
105
	public void dailyReconciliation() throws Exception {
102
	{
-
 
103
		reconciliation.dailyReconciliation();
106
		reconciliation.dailyReconciliation();
104
	}
107
	}
105
	
108
 
106
}
109
}