Subversion Repositories SmartDukaan

Rev

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

Rev 36253 Rev 36292
Line 281... Line 281...
281
        propertiesDetails.put("checkRazorPayPaymentStatus", "1");
281
        propertiesDetails.put("checkRazorPayPaymentStatus", "1");
282
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
282
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
283
 
283
 
284
    }
284
    }
285
 
285
 
286
    @Scheduled(fixedDelay = 2 * 1000)
286
    @Scheduled(fixedDelay = 5 * 1000)
287
    //@Scheduled(cron = "0 5 23 * * *")
287
    //@Scheduled(cron = "0 5 23 * * *")
288
    public void updateIrnsToInvoices() throws Throwable {
288
    public void updateIrnsToInvoices() throws Throwable {
289
        runOnceTasks.updateIrnsToInvoices();
289
        runOnceTasks.updateIrnsToInvoices();
290
    }
290
    }
291
 
291
 
Line 573... Line 573...
573
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
573
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
574
 
574
 
575
    }
575
    }
576
 
576
 
577
 
577
 
578
    @Scheduled(fixedDelay = 60 * 1000)
578
    @Scheduled(fixedDelay = 5 * 60 * 1000)
579
    public void vivoImeiActivation() throws Throwable {
579
    public void vivoImeiActivation() throws Throwable {
580
        log.info("startTimevivoImeiActivation" + LocalDateTime.now());
580
        log.info("startTimevivoImeiActivation" + LocalDateTime.now());
581
 
581
 
582
        LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
582
        LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
583
        propertiesDetails.put("vivoImeiActivation", "0");
583
        propertiesDetails.put("vivoImeiActivation", "0");
Line 591... Line 591...
591
        propertiesDetails.put("vivoDate", Long.toString(secs));
591
        propertiesDetails.put("vivoDate", Long.toString(secs));
592
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
592
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
593
 
593
 
594
    }
594
    }
595
 
595
 
596
    @Scheduled(fixedDelay = 60 * 1000)
596
    @Scheduled(fixedDelay = 5 * 60 * 1000)
597
    public void vivoImeiActivationTertiary() throws Throwable {
597
    public void vivoImeiActivationTertiary() throws Throwable {
598
        log.info("startTimevivoImeiActivationTertiary" + LocalDateTime.now());
598
        log.info("startTimevivoImeiActivationTertiary" + LocalDateTime.now());
599
 
599
 
600
        scheduledTasks.checkImeiActivationTertiary();
600
        scheduledTasks.checkImeiActivationTertiary();
601
 
601
 
Line 638... Line 638...
638
    private StandAlone standAlone;
638
    private StandAlone standAlone;
639
 
639
 
640
    @Autowired
640
    @Autowired
641
    OrderTrackingService orderTrackingService;
641
    OrderTrackingService orderTrackingService;
642
 
642
 
643
    @Scheduled(fixedDelay = 60 * 1000)
643
    @Scheduled(fixedDelay = 5 * 60 * 1000)
644
    public void oppo() throws Throwable {
644
    public void oppo() throws Throwable {
645
        standAlone.checkOppoImeiStatus();
645
        standAlone.checkOppoImeiStatus();
646
    }
646
    }
647
 
647
 
648
    @Scheduled(fixedDelay = 60 * 1000)
648
    @Scheduled(fixedDelay = 5 * 60 * 1000)
649
    public void oppoTertiary() throws Throwable {
649
    public void oppoTertiary() throws Throwable {
650
        standAlone.checkOppoImeiStatusTertiary();
650
        standAlone.checkOppoImeiStatusTertiary();
651
    }
651
    }
652
 
652
 
653
    @Scheduled(fixedDelay = 60 * 1000)
653
    @Scheduled(fixedDelay = 5 * 60 * 1000)
654
    public void realme() throws Throwable {
654
    public void realme() throws Throwable {
655
        standAlone.checkRealmeImeiStatus();
655
        standAlone.checkRealmeImeiStatus();
656
    }
656
    }
657
 
657
 
658
    @Scheduled(fixedDelay = 60 * 1000)
658
    @Scheduled(fixedDelay = 5 * 60 * 1000)
659
    public void realmeTertiary() throws Throwable {
659
    public void realmeTertiary() throws Throwable {
660
        standAlone.checkRealmeImeiStatusTertiary();
660
        standAlone.checkRealmeImeiStatusTertiary();
661
    }
661
    }
662
 
662
 
663
    @Scheduled(cron = "0 0 * * * *")
663
    @Scheduled(cron = "0 0 * * * *")