| Line 510... |
Line 510... |
| 510 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
510 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 511 |
|
511 |
|
| 512 |
log.info("endTime" + LocalDateTime.now());
|
512 |
log.info("endTime" + LocalDateTime.now());
|
| 513 |
}
|
513 |
}
|
| 514 |
|
514 |
|
| 515 |
@Scheduled(cron = "0 0 23 * * *")
|
515 |
/* @Scheduled(cron = "0 0 23 * * *")
|
| 516 |
public void checkItelImeiActivation() throws Throwable {
|
516 |
public void checkItelImeiActivation() throws Throwable {
|
| 517 |
log.info("startTime" + LocalDate.now());
|
517 |
log.info("startTime" + LocalDate.now());
|
| 518 |
|
518 |
|
| 519 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
519 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
| 520 |
propertiesDetails.put("checkItelImeiActivation", "0");
|
520 |
propertiesDetails.put("checkItelImeiActivation", "0");
|
| Line 525... |
Line 525... |
| 525 |
log.info("endTimecheckItelImeiActivation" + LocalDate.now());
|
525 |
log.info("endTimecheckItelImeiActivation" + LocalDate.now());
|
| 526 |
propertiesDetails.put("checkItelImeiActivation", "1");
|
526 |
propertiesDetails.put("checkItelImeiActivation", "1");
|
| 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 |
|
- |
|
| 532 |
|
531 |
|
| 533 |
@Scheduled(cron = "0 0 23 * * *")
|
532 |
@Scheduled(cron = "0 0 23 * * *")
|
| 534 |
public void checkItelImeiActivationNew() throws Throwable {
|
533 |
public void checkItelImeiActivationNew() throws Throwable {
|
| 535 |
log.info("startTime" + LocalDate.now());
|
534 |
log.info("startTime" + LocalDate.now());
|
| 536 |
|
535 |
|
| Line 546... |
Line 545... |
| 546 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
545 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 547 |
|
546 |
|
| 548 |
}
|
547 |
}
|
| 549 |
|
548 |
|
| 550 |
|
549 |
|
| 551 |
@Scheduled(cron = "0 0 23 * * *")
|
550 |
/* @Scheduled(cron = "0 0 23 * * *")
|
| 552 |
public void checkTecnoImeiActivation() throws Throwable {
|
551 |
public void checkTecnoImeiActivation() throws Throwable {
|
| 553 |
|
552 |
|
| 554 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
553 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
| 555 |
propertiesDetails.put("checkTecnoImeiActivation", "0");
|
554 |
propertiesDetails.put("checkTecnoImeiActivation", "0");
|
| 556 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
555 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| Line 563... |
Line 562... |
| 563 |
long secs = (new Date().getTime()) / 1000;
|
562 |
long secs = (new Date().getTime()) / 1000;
|
| 564 |
propertiesDetails.put("checkTecnoImeiActivation", "1");
|
563 |
propertiesDetails.put("checkTecnoImeiActivation", "1");
|
| 565 |
propertiesDetails.put("technoDate", Long.toString(secs));
|
564 |
propertiesDetails.put("technoDate", Long.toString(secs));
|
| 566 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
565 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 567 |
|
566 |
|
| 568 |
}
|
567 |
}*/
|
| 569 |
|
568 |
|
| 570 |
@Scheduled(fixedDelay = 60 * 1000)
|
569 |
@Scheduled(fixedDelay = 60 * 1000)
|
| 571 |
public void vivoImeiActivation() throws Throwable {
|
570 |
public void vivoImeiActivation() throws Throwable {
|
| 572 |
log.info("startTimevivoImeiActivation" + LocalDateTime.now());
|
571 |
log.info("startTimevivoImeiActivation" + LocalDateTime.now());
|
| 573 |
|
572 |
|