Subversion Repositories SmartDukaan

Rev

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

Rev 29673 Rev 29674
Line 45... Line 45...
45
	private OnBoardingRelatedSchelduleTask onBoardingRelatedSchelduleTask;
45
	private OnBoardingRelatedSchelduleTask onBoardingRelatedSchelduleTask;
46
 
46
 
47
	@Autowired
47
	@Autowired
48
	private WriteToPropertiesFile writeToPropertiesFile;
48
	private WriteToPropertiesFile writeToPropertiesFile;
49
 
49
 
50
	String nagiosCronPropertiesFile = "/var/log/services/nagios-Cron-Monitoring-.properties";
50
	String nagiosCronPropertiesFile = "/var/log/services/nagios-Cron-Monitoring.properties";
51
 
51
 
52
	// @Scheduled(cron = "0 0 2 * * *")
52
	// @Scheduled(cron = "0 0 2 * * *")
53
	public void processDailySchemes() throws Exception {
53
	public void processDailySchemes() throws Exception {
54
		
54
		
55
		LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
55
		LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
Line 215... Line 215...
215
	}
215
	}
216
 
216
 
217
	@Scheduled(cron = "0 */5 * * * *")
217
	@Scheduled(cron = "0 */5 * * * *")
218
	public void sendNotification() throws Throwable {
218
	public void sendNotification() throws Throwable {
219
		
219
		
-
 
220
		log.info("send Notification");
220
		LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
221
		LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
221
		propertiesDetails.put("sendNotification", "0");
222
		propertiesDetails.put("sendNotification", "0");
222
		writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
223
		writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
223
 
224
 
224
		scheduledTasks.sendNotification();
225
		scheduledTasks.sendNotification();
225
		propertiesDetails.put("sendNotification", "0");
226
		propertiesDetails.put("sendNotification", "0");
226
		writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
227
		writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
-
 
228
		log.info("send Notification Done");
227
 
229
 
228
	}
230
	}
229
 
231
 
230
	@Scheduled(cron = "0 */15 * * * *")
232
	@Scheduled(cron = "0 */15 * * * *")
231
	public void checkRazorPayPaymentStatus() throws Throwable {
233
	public void checkRazorPayPaymentStatus() throws Throwable {