Subversion Repositories SmartDukaan

Rev

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

Rev 28837 Rev 28921
Line 34... Line 34...
34
	NagiosMonitorTasks nagiosMonitorTasks;
34
	NagiosMonitorTasks nagiosMonitorTasks;
35
 
35
 
36
	@Autowired
36
	@Autowired
37
	private TicketRelatedScheduledTask ticketRelatedScheduledTask;
37
	private TicketRelatedScheduledTask ticketRelatedScheduledTask;
38
 
38
 
-
 
39
	@Autowired
-
 
40
	private OnBoardingRelatedSchelduleTask onBoardingRelatedSchelduleTask;
-
 
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(7), LocalDateTime.now(), false);
44
		scheduledTasks.processScheme(LocalDateTime.now().minusDays(7), LocalDateTime.now(), false);
42
	}
45
	}
43
 
46
 
Line 58... Line 61...
58
 
61
 
59
	@Scheduled(cron = "0 0 6 * * *")
62
	@Scheduled(cron = "0 0 6 * * *")
60
	public void sendPartnerInvestmentDetails() throws Exception {
63
	public void sendPartnerInvestmentDetails() throws Exception {
61
		scheduledTasks.sendPartnerInvestmentDetails();
64
		scheduledTasks.sendPartnerInvestmentDetails();
62
	}
65
	}
63
	
66
 
64
	@Scheduled(cron = "0 0 10,15,17 * * *")
67
	@Scheduled(cron = "0 0 10,15,17 * * *")
65
	public void sendIndentTertiaryReport() throws Exception {
68
	public void sendIndentTertiaryReport() throws Exception {
66
		scheduledTasks.sendIndentTertiary();
69
		scheduledTasks.sendIndentTertiary();
67
	}
70
	}
68
	
71
 
69
	@Scheduled(cron = "0 0 6 * * *")
72
	@Scheduled(cron = "0 0 6 * * *")
70
	public void checkPartnerActiveStoreByStatus() throws Exception {
73
	public void checkPartnerActiveStoreByStatus() throws Exception {
71
		scheduledTasks.checkPartnerActiveStore();
74
		scheduledTasks.checkPartnerActiveStore();
72
	}
75
	}
73
 
76
 
74
	//@Scheduled(cron = "0 0 8 * * *")
77
	// @Scheduled(cron = "0 0 8 * * *")
75
	public void sendStockAgeingReport() throws Throwable {
78
	public void sendStockAgeingReport() throws Throwable {
76
		scheduledTasks.sendAgeingReport();
79
		scheduledTasks.sendAgeingReport();
77
	}
80
	}
78
 
81
 
79
	@Scheduled(cron = "0 0/30 1-23 * * *")
82
	@Scheduled(cron = "0 0/30 1-23 * * *")
Line 124... Line 127...
124
 
127
 
125
		scheduledTasks.ticketClosed();
128
		scheduledTasks.ticketClosed();
126
 
129
 
127
	}
130
	}
128
 
131
 
129
	//@Scheduled(cron = "0 45 8 * * *")
132
	// @Scheduled(cron = "0 45 8 * * *")
130
	public void checkfocusedModelInPartnerStock() throws Throwable {
133
	public void checkfocusedModelInPartnerStock() throws Throwable {
131
		log.info("startTime" + LocalDateTime.now());
134
		log.info("startTime" + LocalDateTime.now());
132
		scheduledTasks.checkfocusedModelInPartnerStock();
135
		scheduledTasks.checkfocusedModelInPartnerStock();
133
 
136
 
134
		log.info("endTime" + LocalDateTime.now());
137
		log.info("endTime" + LocalDateTime.now());
Line 151... Line 154...
151
		scheduledTasks.checkValidateReferral();
154
		scheduledTasks.checkValidateReferral();
152
 
155
 
153
		log.info("endTime" + LocalDateTime.now());
156
		log.info("endTime" + LocalDateTime.now());
154
	}
157
	}
155
 
158
 
156
	//@Scheduled(cron = "0 0 8 * * *")
159
	// @Scheduled(cron = "0 0 8 * * *")
157
	public void partnerProblemAlert() throws Throwable {
160
	public void partnerProblemAlert() throws Throwable {
158
		log.info("startTime" + LocalDateTime.now());
161
		log.info("startTime" + LocalDateTime.now());
159
		scheduledTasks.partnerProblemAlert();
162
		scheduledTasks.partnerProblemAlert();
160
		log.info("endTime" + LocalDateTime.now());
163
		log.info("endTime" + LocalDateTime.now());
161
	}
164
	}
162
	
165
 
163
	@Scheduled(cron = "0 30 10 * * MON-SAT")
166
	@Scheduled(cron = "0 30 10 * * MON-SAT")
164
	public void sendMorningAttendanceAlert() throws Throwable {
167
	public void sendMorningAttendanceAlert() throws Throwable {
165
		log.info("startTime" + LocalDateTime.now());
168
		log.info("startTime" + LocalDateTime.now());
166
		scheduledTasks.sendAttendanceMorningAlert();
169
		scheduledTasks.sendAttendanceMorningAlert();
167
		log.info("endTime" + LocalDateTime.now());
170
		log.info("endTime" + LocalDateTime.now());
168
	}
171
	}
169
	
172
 
170
	@Scheduled(cron = "0 30 20 * * MON-SAT")
173
	@Scheduled(cron = "0 30 20 * * MON-SAT")
171
	public void sendEveningAttendanceAlert() throws Throwable {
174
	public void sendEveningAttendanceAlert() throws Throwable {
172
		log.info("startTime" + LocalDateTime.now());
175
		log.info("startTime" + LocalDateTime.now());
173
		scheduledTasks.sendAttendanceEveningAlert();
176
		scheduledTasks.sendAttendanceEveningAlert();
174
		log.info("endTime" + LocalDateTime.now());
177
		log.info("endTime" + LocalDateTime.now());
175
	}
178
	}
-
 
179
 
-
 
180
	@Scheduled(cron = "0 0 7 * * *")
-
 
181
	public void onboardingEventDelays() throws Throwable {
-
 
182
		log.info("startTime" + LocalDateTime.now());
-
 
183
		onBoardingRelatedSchelduleTask.onboardingEventDelays();
-
 
184
		log.info("endTime" + LocalDateTime.now());
-
 
185
	}
-
 
186
 
-
 
187
	@Scheduled(cron = "0 0 8 * * *")
-
 
188
	public void brandingAlert() throws Throwable {
-
 
189
		log.info("startTime" + LocalDateTime.now());
-
 
190
		onBoardingRelatedSchelduleTask.brandingAlert();
-
 
191
		log.info("endTime" + LocalDateTime.now());
-
 
192
	}
-
 
193
 
-
 
194
	@Scheduled(cron = "0 0 8 * * *")
-
 
195
	public void advancePaymentPendingAlert() throws Throwable {
-
 
196
		log.info("startTime" + LocalDateTime.now());
-
 
197
		onBoardingRelatedSchelduleTask.advancePaymentPendingAlert();
-
 
198
		log.info("endTime" + LocalDateTime.now());
-
 
199
	}
-
 
200
 
-
 
201
	@Scheduled(cron = "0 0 8 * * *")
-
 
202
	public void fullPaymentPendingAlert() throws Throwable {
-
 
203
		log.info("startTime" + LocalDateTime.now());
-
 
204
		onBoardingRelatedSchelduleTask.fullPaymentPendingAlert();
-
 
205
		log.info("endTime" + LocalDateTime.now());
-
 
206
	}
-
 
207
 
176
}
208
}