Subversion Repositories SmartDukaan

Rev

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

Rev 32165 Rev 32214
Line 527... Line 527...
527
        propertiesDetails.put("itelDate", Long.toString(secs));
527
        propertiesDetails.put("itelDate", Long.toString(secs));
528
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
528
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
529
 
529
 
530
    }
530
    }
531
 
531
 
-
 
532
 
-
 
533
    @Scheduled(cron = "0 0 23 * * *")
-
 
534
    public void checkItelImeiActivationNew() throws Throwable {
-
 
535
        log.info("startTime" + LocalDate.now());
-
 
536
 
-
 
537
        LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
-
 
538
        propertiesDetails.put("checkItelImeiActivationNew", "0");
-
 
539
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
-
 
540
        log.info("startTimecheckItelImeiActivation" + LocalDate.now());
-
 
541
        scheduledTasks.checkItelImeiActivationNew(LocalDate.now(), 90);
-
 
542
        long secs = (new Date().getTime()) / 1000;
-
 
543
        log.info("endTimecheckItelImeiActivation" + LocalDate.now());
-
 
544
        propertiesDetails.put("checkItelImeiActivationNew", "1");
-
 
545
        propertiesDetails.put("itelDate", Long.toString(secs));
-
 
546
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
-
 
547
 
-
 
548
    }
-
 
549
 
-
 
550
 
532
    @Scheduled(cron = "0 0 23 * * *")
551
    @Scheduled(cron = "0 0 23 * * *")
533
    public void checkTecnoImeiActivation() throws Throwable {
552
    public void checkTecnoImeiActivation() throws Throwable {
534
 
553
 
535
        LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
554
        LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
536
        propertiesDetails.put("checkTecnoImeiActivation", "0");
555
        propertiesDetails.put("checkTecnoImeiActivation", "0");