Subversion Repositories SmartDukaan

Rev

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

Rev 32406 Rev 32411
Line 2... Line 2...
2
 
2
 
3
import com.smartdukaan.cron.migrations.RunOnceTasks;
3
import com.smartdukaan.cron.migrations.RunOnceTasks;
4
import com.smartdukaan.cron.monitored.NagiosMonitorTasks;
4
import com.smartdukaan.cron.monitored.NagiosMonitorTasks;
5
import com.smartdukaan.cron.properties.WriteToPropertiesFile;
5
import com.smartdukaan.cron.properties.WriteToPropertiesFile;
6
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
6
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
-
 
7
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
7
import org.apache.logging.log4j.LogManager;
8
import org.apache.logging.log4j.LogManager;
8
import org.apache.logging.log4j.Logger;
9
import org.apache.logging.log4j.Logger;
9
import org.springframework.beans.factory.annotation.Autowired;
10
import org.springframework.beans.factory.annotation.Autowired;
10
import org.springframework.scheduling.annotation.Scheduled;
11
import org.springframework.scheduling.annotation.Scheduled;
11
import org.springframework.stereotype.Component;
12
import org.springframework.stereotype.Component;
Line 334... Line 335...
334
        propertiesDetails.put("fetchImeiActivation", "1");
335
        propertiesDetails.put("fetchImeiActivation", "1");
335
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
336
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
336
 
337
 
337
    }
338
    }
338
 
339
 
-
 
340
    @Scheduled(cron = "0 0 7 * * *")
-
 
341
    //Send all lead owners the report for scheduled followups missed
-
 
342
    public void sendUnscheduledFollowUpMail() throws Exception {
-
 
343
        scheduledTasks.sendUnscheduledFollowUpMail();
-
 
344
    }
-
 
345
 
339
    @Scheduled(cron = "0 0 1 * * *")
346
    @Scheduled(cron = "0 0 1 * * *")
340
    public void checkValidateReferral() throws Throwable {
347
    public void checkValidateReferral() throws Throwable {
341
        log.info("startTime" + LocalDateTime.now());
348
        log.info("startTime" + LocalDateTime.now());
342
        LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
349
        LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
343
        propertiesDetails.put("checkValidateReferral", "0");
350
        propertiesDetails.put("checkValidateReferral", "0");
Line 594... Line 601...
594
    public void calculateInterestAccured() throws Throwable {
601
    public void calculateInterestAccured() throws Throwable {
595
        scheduledTasks.calculateInterestAccured();
602
        scheduledTasks.calculateInterestAccured();
596
    }
603
    }
597
 
604
 
598
    //  @Scheduled(cron = "0 */5 2-22 * * *")
605
    //  @Scheduled(cron = "0 */5 2-22 * * *")
599
   // @Scheduled(fixedDelay = 5 * 60 * 1000)
606
   @Scheduled(fixedDelay = 5 * 60 * 1000)
600
    public void loanSettlement() throws Throwable {
607
    public void loanSettlement() throws Throwable {
601
        scheduledTasks.loanSettlement();
608
        scheduledTasks.loanSettlement();
602
    }
609
    }
603
 
610
 
604
    @Scheduled(cron = "0 */15 * * * *")
611
    @Scheduled(cron = "0 */15 * * * *")